<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7650.28">
<TITLE>Problems with Cmake and ImageViewer application</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi all,<BR>
<BR>
I am trying out the image viewer application. I have built FLTK already and ITK already, and everything seems to be running ok. But I am experiencing the following errors when configuring using CMAKE:<BR>
<BR>
<BR>
CMake Error: Cannot find source file<BR>
"C:/InsightToolkit-2.8.1/2D/AppImageViewer/ImageViewer.cxx;C:/InsightToolkit-2.8.1/2D/<BR>
AppImageViewer/binaries/ImageViewerGUI.cxx for target "ImageViewer"<BR>
<BR>
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .h++ .hm .hpp .hxx .in .txx<BR>
<BR>
Can anyone help me on this? Thanks in advance.<BR>
<BR>
I am also attaching my cMakeList code below:<BR>
<BR>
PROJECT(ImageViewer)<BR>
<BR>
#IF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )<BR>
<BR>
FIND_PACKAGE(ITK)<BR>
IF(ITK_FOUND)<BR>
INCLUDE(${ITK_USE_FILE})<BR>
ELSE(ITK_FOUND)<BR>
MESSAGE(FATAL_ERROR<BR>
"Cannot build InsightApplications without ITK. Please set ITK_DIR.")<BR>
ENDIF(ITK_FOUND)<BR>
<BR>
FIND_PACKAGE(FLTK)<BR>
IF (FLTK_FOUND)<BR>
INCLUDE_DIRECTORIES (${FLTK_INCLUDE_DIR})<BR>
ELSE (FLTK_FOUND)<BR>
MESSAGE( FATAL_ERROR "This application requires FLTK. One of these<BR>
components is missing. Please verify configuration")<BR>
ENDIF (FLTK_FOUND)<BR>
<BR>
#ENDIF( BUILD_OUTSIDE_INSIGHT_APPLICATIONS )<BR>
<BR>
INCLUDE_DIRECTORIES (<BR>
${ImageViewer_SOURCE_DIR}/Auxiliary/FltkImageViewer<BR>
)<BR>
<BR>
LINK_LIBRARIES (<BR>
ITKBasicFilters<BR>
ITKIO<BR>
ITKFltkImageViewer<BR>
)<BR>
<BR>
<BR>
SET(ImageViewer_GUI_SRCS<BR>
ImageViewerGUI.fl<BR>
)<BR>
<BR>
FLTK_WRAP_UI( ImageViewer ${ImageViewer_GUI_SRCS} )<BR>
#ITK_DISABLE_FLTK_GENERATED_WARNINGS("${ImageViewer_GUI_SRCS}")<BR>
<BR>
SET ( ImageViewer_SRCS<BR>
ImageViewer.cxx<BR>
${ImageViewer_FLTK_UI_SRCS}<BR>
)<BR>
<BR>
ADD_EXECUTABLE( ImageViewer "${ImageViewer_SRCS}" )<BR>
<BR>
<BR>
Regards<BR>
Zheying</FONT>
</P>
</BODY>
</HTML>