[Insight-users] Re: [Insight-users]build snap out of ITK cmake error
a a
user_itk at yahoo.com.sg
Tue, 2 Mar 2004 12:16:33 +0800 (CST)
--0-1329457753-1078200993=:82279
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Hi Luis,
i've already provided all the FLTK components, but these messages still come out
unknown cmake error "Add_GUI_Executable", "ITK_DISABLE_FLTK_GENERATED_WARNINGS"
CMAKE ERROR: Attempt to add link libraries to non-existant target: SNAP for lib vtkCommon.......Attempt to add link libraries to non-existant target: SNAP for lib vtkFiltering..............vtkGraphics and so on.
what i did was copy the whole of SNAP folder and pasted it on the C drive, then add in some Find Packages codes into the CMake list as shown below.....Can you please point out what i did wrong, thanks
#############################################
# PROJECT: SNAP #
#############################################
PROJECT(SNAP)
#############################################
# SOURCE FILE SPECIFICATION #
#############################################
# Find ITK.
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
MESSAGE(FATAL_ERROR
"Cannot build without ITK. Please set ITK_DIR.")
ENDIF(ITK_FOUND)
# Find FLTK.
FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ELSE(FLTK_FOUND)
MESSAGE(FATAL_ERROR
"Cannot build without FLTK. Please set FLTK_DIR.")
ENDIF(FLTK_FOUND)
INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)
IF (USE_VTK_FILE)
INCLUDE(${USE_VTK_FILE})
ENDIF (USE_VTK_FILE)
# The source files that form the application
SET(COMMON_CXX
Common/CommandLineArgumentParser.cxx
Common/IRISException.cxx
Logic/Common/ImageCoordinateTransform.cxx
Logic/Framework/GlobalState.cxx
Logic/Framework/IRISApplication.cxx
Logic/Framework/IRISImageData.cxx
Logic/Framework/SNAPImageData.cxx
Logic/ImageWrapper/GreyImageWrapperImplementation.cxx
Logic/ImageWrapper/LabelImageWrapperImplementation.cxx
Logic/ImageWrapper/LevelSetImageWrapperImplementation.cxx
Logic/ImageWrapper/SpeedImageWrapperImplementation.cxx
Logic/LevelSet/SnakeParameters.cxx
Logic/LevelSet/SNAPLevelSetDriver.cxx
Logic/Mesh/IRISMeshPipeline.cxx
Logic/Mesh/LevelSetMeshPipeline.cxx
Logic/Mesh/MeshObject.cxx
Logic/Mesh/MeshOptions.cxx
Logic/Preprocessing/EdgePreprocessingSettings.cxx
Logic/Preprocessing/ThresholdSettings.cxx
Logic/Slicing/IntensityCurveVTK.cxx
UserInterface/BasicComponents/FLTKCanvas.cxx
UserInterface/BasicComponents/FunctionPlot2DBox.cxx
UserInterface/BasicComponents/FunctionPlot2D.cxx
UserInterface/MainComponents/IntensityCurveBox.cxx
UserInterface/MainComponents/IntensityCurveUILogic.cxx
UserInterface/MainComponents/PreprocessingUILogic.cxx
UserInterface/MainComponents/UserInterfaceLogic.cxx
UserInterface/SliceWindow/BubblesInteractionMode.cxx
UserInterface/SliceWindow/CrosshairsInteractionMode.cxx
UserInterface/SliceWindow/GenericSliceWindow.cxx
UserInterface/SliceWindow/IRISSliceWindow.cxx
UserInterface/SliceWindow/PolygonDrawing.cxx
UserInterface/SliceWindow/PolygonInteractionMode.cxx
UserInterface/SliceWindow/RegionInteractionMode.cxx
UserInterface/SliceWindow/SNAPSliceWindow.cxx
UserInterface/SliceWindow/ZoomPanInteractionMode.cxx
UserInterface/Window3D/Trackball.cxx
UserInterface/Window3D/Window3D.cxx
)
# The source files for the SNAP application
SET(APPLICATION_CXX
UserInterface/SNAPMain.cxx
)
# The source files for testing
SET(TESTING_CXX
Testing/Compatibility/SnakeWrapper.cxx
Testing/GUITestPadLogic.cxx
Testing/ImageWrapperTest.cxx
Testing/SnakeTest.cxx
Testing/TestMain.cxx
)
# The header and template code files
SET(COMMON_HEADERS
Common/CommandLineArgumentParser.h
Common/Credits.h
Common/IRISException.h
Common/IRISTypes.h
Common/IRISVectorTypes.h
Common/IRISVectorTypesToITKConversion.h
Common/IRISVectorTypes.txx
Logic/Common/ColorLabel.h
Logic/Common/ImageCoordinateTransform.h
Logic/Common/ImageRayIntersectionFinder.h
Logic/Common/ImageRayIntersectionFinder.txx
Logic/Framework/GlobalState.h
Logic/Framework/IRISApplication.h
Logic/Framework/IRISImageData.h
Logic/Framework/SNAPImageData.h
Logic/ImageWrapper/GreyImageWrapper.h
Logic/ImageWrapper/GreyImageWrapperImplementation.h
Logic/ImageWrapper/ImageWrapper.h
Logic/ImageWrapper/ImageWrapperImplementation.h
Logic/ImageWrapper/ImageWrapperImplementation.txx
Logic/ImageWrapper/LabelImageWrapper.h
Logic/ImageWrapper/LabelImageWrapperImplementation.h
Logic/ImageWrapper/LevelSetImageWrapper.h
Logic/ImageWrapper/LevelSetImageWrapperImplementation.h
Logic/ImageWrapper/SpeedImageWrapper.h
Logic/ImageWrapper/SpeedImageWrapperImplementation.h
Logic/LevelSet/SnakeParameters.h
Logic/LevelSet/SNAPAdvectionFieldImageFilter.h
Logic/LevelSet/SNAPAdvectionFieldImageFilter.txx
Logic/LevelSet/SNAPLevelSetDriver.h
Logic/LevelSet/SNAPLevelSetFunction.h
Logic/LevelSet/SNAPLevelSetFunction.txx
Logic/LevelSet/SNAPLevelSetStopAndGoFilter.h
Logic/LevelSet/SNAPLevelSetStopAndGoFilter.txx
Logic/Mesh/IRISMeshPipeline.h
Logic/Mesh/LevelSetMeshPipeline.h
Logic/Mesh/MeshObject.h
Logic/Mesh/MeshOptions.h
Logic/Preprocessing/EdgePreprocessingImageFilter.h
Logic/Preprocessing/EdgePreprocessingImageFilter.txx
Logic/Preprocessing/EdgePreprocessingSettings.h
Logic/Preprocessing/SmoothBinaryThresholdImageFilter.h
Logic/Preprocessing/SmoothBinaryThresholdImageFilter.txx
Logic/Preprocessing/ThresholdSettings.h
Logic/Slicing/IntensityCurveInterface.h
Logic/Slicing/IntensityCurveVTK.h
Logic/Slicing/IRISSlicer.h
Logic/Slicing/IRISSlicer.txx
Logic/Slicing/UnaryFunctorCache.h
Logic/Slicing/UnaryFunctorCache.txx
UserInterface/BasicComponents/FLTKCanvas.h
UserInterface/BasicComponents/FLTKEvent.h
UserInterface/BasicComponents/FunctionPlot2DBox.h
UserInterface/BasicComponents/FunctionPlot2D.h
UserInterface/BasicComponents/InteractionMode.h
UserInterface/MainComponents/ImageIOWizardBase.h
UserInterface/MainComponents/ImageIOWizardLogic.h
UserInterface/MainComponents/ImageIOWizardLogic.txx
UserInterface/MainComponents/IntensityCurveBox.h
UserInterface/MainComponents/IntensityCurveUIBase.h
UserInterface/MainComponents/IntensityCurveUILogic.h
UserInterface/MainComponents/PreprocessingUIBase.h
UserInterface/MainComponents/PreprocessingUILogic.h
UserInterface/MainComponents/UserInterfaceBase.h
UserInterface/MainComponents/UserInterfaceLogic.h
UserInterface/SliceWindow/BubblesInteractionMode.h
UserInterface/SliceWindow/CrosshairsInteractionMode.h
UserInterface/SliceWindow/GenericSliceWindow.h
UserInterface/SliceWindow/IRISSliceWindow.h
UserInterface/SliceWindow/OpenGLSliceTexture.h
UserInterface/SliceWindow/PolygonDrawing.h
UserInterface/SliceWindow/PolygonInteractionMode.h
UserInterface/SliceWindow/RegionInteractionMode.h
UserInterface/SliceWindow/SNAPSliceWindow.h
UserInterface/SliceWindow/ZoomPanInteractionMode.h
UserInterface/Window3D/Trackball.h
UserInterface/Window3D/Window3D.h
)
# The headers for the testing code
SET(TESTING_HEADERS
Testing/Compatibility/SnakeWrapper.h
Testing/GUITestPadBase.h
Testing/GUITestPadLogic.h
)
# The FL files for SNAP
SET(COMMON_FLUIDS
UserInterface/MainComponents/ImageIOWizard.fl
UserInterface/MainComponents/IntensityCurveUI.fl
UserInterface/MainComponents/PreprocessingUI.fl
UserInterface/MainComponents/UserInterface.fl
)
# The FL files for testing
SET(TESTING_FLUIDS
Testing/GUITestPad.fl
)
# Documentation HTML files
SET(DOCUMENTATION_HTML
UserInterface/HTMLHelp/Tutorial.html
)
# Combined sources for the SNAP application
SET(APPLICATION_SRCS
${COMMON_CXX}
${APPLICATION_CXX}
${COMMON_HEADERS}
)
# Combined sources for the testing application
SET(TESTING_SRCS
${COMMON_CXX}
${TESTING_CXX}
${COMMON_HEADERS}
${TESTING_HEADERS}
)
# The SNAP executable
ADD_GUI_EXECUTABLE(SNAP "${APPLICATION_SRCS}")
# The testing executable
ADD_GUI_EXECUTABLE(SNAPTests "${TESTING_SRCS}")
# FLTK Wrapping
FLTK_WRAP_UI(SNAP ${COMMON_FLUIDS})
FLTK_WRAP_UI(SNAPTests ${COMMON_FLUIDS} ${TESTING_FLUIDS})
SET(ALL_FLUIDS ${COMMON_FLUIDS} ${TESTING_FLUIDS})
ITK_DISABLE_FLTK_GENERATED_WARNINGS("${ALL_FLUIDS}")
#############################################
# LIBRARIES AND EXTERNAL CODE #
#############################################
# Shorthand to source and binary directories
SET(MY_SOURCE_DIR ${InsightApplications_SOURCE_DIR}/SNAP)
SET(MY_BINARY_DIR ${InsightApplications_BINARY_DIR}/SNAP)
# Include directories
INCLUDE_DIRECTORIES(
${MY_SOURCE_DIR}/Common
${MY_SOURCE_DIR}/Logic
${MY_SOURCE_DIR}/Logic/Common
${MY_SOURCE_DIR}/Logic/Framework
${MY_SOURCE_DIR}/Logic/ImageWrapper
${MY_SOURCE_DIR}/Logic/LevelSet
${MY_SOURCE_DIR}/Logic/Mesh
${MY_SOURCE_DIR}/Logic/Preprocessing
${MY_SOURCE_DIR}/Logic/Slicing
${MY_SOURCE_DIR}/Testing
${MY_SOURCE_DIR}/Testing/Compatibility
${MY_SOURCE_DIR}/Testing/Compatibility/CVS
${MY_SOURCE_DIR}/UserInterface
${MY_SOURCE_DIR}/UserInterface/BasicComponents
${MY_SOURCE_DIR}/UserInterface/HTMLHelp
${MY_SOURCE_DIR}/UserInterface/MainComponents
${MY_SOURCE_DIR}/UserInterface/MainComponents/Artwork
${MY_SOURCE_DIR}/UserInterface/SliceWindow
${MY_SOURCE_DIR}/UserInterface/Window3D
${MY_BINARY_DIR}/Testing
${MY_BINARY_DIR}/UserInterface/MainComponents
${FLTK_INCLUDE_PATH}
${OPENGL_INCLUDE_PATH}
)
# Link libraries
SET(MY_GRAPHICS_LIBS
vtkCommon
vtkFiltering
vtkGraphics
vtkHybrid
vtkImaging
vtkRendering
${FLTK_LIBRARIES}
${OPENGL_glu_LIBRARY}
${OPENGL_LIBRARIES}
)
SET(MY_ITK_LIBS
ITKIO
)
TARGET_LINK_LIBRARIES(SNAP ${MY_GRAPHICS_LIBS} ${MY_ITK_LIBS})
TARGET_LINK_LIBRARIES(SNAPTests ${MY_GRAPHICS_LIBS} ${MY_ITK_LIBS})
# Copy documentation from the source tree to the build tree
FOREACH(DOCFILE ${DOCUMENTATION_HTML})
CONFIGURE_FILE(
${MY_SOURCE_DIR}/${DOCFILE}
${MY_BINARY_DIR}/${DOCFILE}
COPYONLY)
ENDFOREACH(DOCFILE)
Thanks for helping
regards
jason
Luis Ibanez <luis.ibanez at kitware.com> wrote:
Hi Jason,
This error message indicates that you have not provided
all the FLTK components correctly when you run CMake
for configuring your project.
Please look at the www.itk.org FAQ for details on how to
configure a project for using FLTK.
Regards,
Luis
----------------------
a a wrote:
> Hi,
>
> i was trying to build SNAP out of the ITK, but got some errors in cmake,
> such as: unknown cmake command Add_GUI_Executable, i know this is not a
> cmake command and it's used for Mac.
>
> i'm using win XP, visual c++, and i've already included the typical Find
> ITK, FLTK Package.. command lines inside the CMake list, can anyone
> kindly describe how i can build the applications in Insight Apps outside
> the source, thanks in advance
>
> regards
> jason
>
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users
Y! Asia presents Lavalife
- Stand a chance to win a dream date, join the Dream Guy Contest!
--0-1329457753-1078200993=:82279
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>Hi Luis,</DIV>
<DIV>i've already provided all the FLTK components, but these messages still come out</DIV>
<DIV> </DIV>
<DIV>unknown cmake error "Add_GUI_Executable", "ITK_DISABLE_FLTK_GENERATED_WARNINGS"</DIV>
<DIV> </DIV>
<DIV>CMAKE ERROR: Attempt to add link libraries to non-existant target: SNAP for lib vtkCommon.......Attempt to add link libraries to non-existant target: SNAP for lib vtkFiltering..............vtkGraphics and so on.</DIV>
<DIV> </DIV>
<DIV>what i did was copy the whole of SNAP folder and pasted it on the C drive, then add in some Find Packages codes into the CMake list as shown below.....Can you please point out what i did wrong, thanks</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>#############################################<BR># PROJECT: SNAP #<BR>#############################################<BR>PROJECT(SNAP)</DIV>
<DIV>#############################################<BR># SOURCE FILE SPECIFICATION #<BR>#############################################</DIV>
<DIV># Find ITK.<BR>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR> INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR> MESSAGE(FATAL_ERROR<BR> "Cannot build without ITK. Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)</DIV>
<DIV><BR># Find FLTK.<BR>FIND_PACKAGE(FLTK)<BR>IF(FLTK_FOUND)<BR> INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>ELSE(FLTK_FOUND)<BR> MESSAGE(FATAL_ERROR<BR> "Cannot build without FLTK. Please set FLTK_DIR.")<BR>ENDIF(FLTK_FOUND)</DIV>
<DIV>INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)<BR>IF (USE_VTK_FILE)<BR> INCLUDE(${USE_VTK_FILE})<BR>ENDIF (USE_VTK_FILE)</DIV>
<DIV><BR># The source files that form the application<BR>SET(COMMON_CXX<BR> Common/CommandLineArgumentParser.cxx<BR> Common/IRISException.cxx<BR> Logic/Common/ImageCoordinateTransform.cxx<BR> Logic/Framework/GlobalState.cxx<BR> Logic/Framework/IRISApplication.cxx<BR> Logic/Framework/IRISImageData.cxx<BR> Logic/Framework/SNAPImageData.cxx<BR> Logic/ImageWrapper/GreyImageWrapperImplementation.cxx<BR> Logic/ImageWrapper/LabelImageWrapperImplementation.cxx<BR> Logic/ImageWrapper/LevelSetImageWrapperImplementation.cxx<BR> Logic/ImageWrapper/SpeedImageWrapperImplementation.cxx<BR> Logic/LevelSet/SnakeParameters.cxx<BR> Logic/LevelSet/SNAPLevelSetDriver.cxx<BR> Logic/Mesh/IRISMeshPipeline.cxx<BR> Logic/Mesh/LevelSetMeshPipeline.cxx<BR> Logic/Mesh/MeshObject.cxx<BR> Logic/Mesh/MeshOptions.cxx<BR> Logic/Preprocessing/EdgePreprocessingSettings.cxx<BR>
Logic/Preprocessing/ThresholdSettings.cxx<BR> Logic/Slicing/IntensityCurveVTK.cxx<BR> UserInterface/BasicComponents/FLTKCanvas.cxx<BR> UserInterface/BasicComponents/FunctionPlot2DBox.cxx<BR> UserInterface/BasicComponents/FunctionPlot2D.cxx<BR> UserInterface/MainComponents/IntensityCurveBox.cxx<BR> UserInterface/MainComponents/IntensityCurveUILogic.cxx<BR> UserInterface/MainComponents/PreprocessingUILogic.cxx<BR> UserInterface/MainComponents/UserInterfaceLogic.cxx<BR> UserInterface/SliceWindow/BubblesInteractionMode.cxx<BR> UserInterface/SliceWindow/CrosshairsInteractionMode.cxx<BR> UserInterface/SliceWindow/GenericSliceWindow.cxx<BR> UserInterface/SliceWindow/IRISSliceWindow.cxx<BR> UserInterface/SliceWindow/PolygonDrawing.cxx<BR> UserInterface/SliceWindow/PolygonInteractionMode.cxx<BR> UserInterface/SliceWindow/RegionInteractionMode.cxx<BR>
UserInterface/SliceWindow/SNAPSliceWindow.cxx<BR> UserInterface/SliceWindow/ZoomPanInteractionMode.cxx<BR> UserInterface/Window3D/Trackball.cxx<BR> UserInterface/Window3D/Window3D.cxx<BR>)</DIV>
<DIV># The source files for the SNAP application<BR>SET(APPLICATION_CXX<BR> UserInterface/SNAPMain.cxx<BR>)</DIV>
<DIV># The source files for testing<BR>SET(TESTING_CXX<BR> Testing/Compatibility/SnakeWrapper.cxx<BR> Testing/GUITestPadLogic.cxx<BR> Testing/ImageWrapperTest.cxx<BR> Testing/SnakeTest.cxx<BR> Testing/TestMain.cxx<BR>)</DIV>
<DIV># The header and template code files<BR>SET(COMMON_HEADERS<BR> Common/CommandLineArgumentParser.h<BR> Common/Credits.h<BR> Common/IRISException.h<BR> Common/IRISTypes.h<BR> Common/IRISVectorTypes.h<BR> Common/IRISVectorTypesToITKConversion.h<BR> Common/IRISVectorTypes.txx<BR> Logic/Common/ColorLabel.h<BR> Logic/Common/ImageCoordinateTransform.h<BR> Logic/Common/ImageRayIntersectionFinder.h<BR> Logic/Common/ImageRayIntersectionFinder.txx<BR> Logic/Framework/GlobalState.h<BR> Logic/Framework/IRISApplication.h<BR> Logic/Framework/IRISImageData.h<BR> Logic/Framework/SNAPImageData.h<BR> Logic/ImageWrapper/GreyImageWrapper.h<BR> Logic/ImageWrapper/GreyImageWrapperImplementation.h<BR> Logic/ImageWrapper/ImageWrapper.h<BR> Logic/ImageWrapper/ImageWrapperImplementation.h<BR> Logic/ImageWrapper/ImageWrapperImplementation.txx<BR>
Logic/ImageWrapper/LabelImageWrapper.h<BR> Logic/ImageWrapper/LabelImageWrapperImplementation.h<BR> Logic/ImageWrapper/LevelSetImageWrapper.h<BR> Logic/ImageWrapper/LevelSetImageWrapperImplementation.h<BR> Logic/ImageWrapper/SpeedImageWrapper.h<BR> Logic/ImageWrapper/SpeedImageWrapperImplementation.h<BR> Logic/LevelSet/SnakeParameters.h<BR> Logic/LevelSet/SNAPAdvectionFieldImageFilter.h<BR> Logic/LevelSet/SNAPAdvectionFieldImageFilter.txx<BR> Logic/LevelSet/SNAPLevelSetDriver.h<BR> Logic/LevelSet/SNAPLevelSetFunction.h<BR> Logic/LevelSet/SNAPLevelSetFunction.txx<BR> Logic/LevelSet/SNAPLevelSetStopAndGoFilter.h<BR> Logic/LevelSet/SNAPLevelSetStopAndGoFilter.txx<BR> Logic/Mesh/IRISMeshPipeline.h<BR> Logic/Mesh/LevelSetMeshPipeline.h<BR> Logic/Mesh/MeshObject.h<BR> Logic/Mesh/MeshOptions.h<BR> Logic/Preprocessing/EdgePreprocessingImageFilter.h<BR>
Logic/Preprocessing/EdgePreprocessingImageFilter.txx<BR> Logic/Preprocessing/EdgePreprocessingSettings.h<BR> Logic/Preprocessing/SmoothBinaryThresholdImageFilter.h<BR> Logic/Preprocessing/SmoothBinaryThresholdImageFilter.txx<BR> Logic/Preprocessing/ThresholdSettings.h<BR> Logic/Slicing/IntensityCurveInterface.h<BR> Logic/Slicing/IntensityCurveVTK.h<BR> Logic/Slicing/IRISSlicer.h<BR> Logic/Slicing/IRISSlicer.txx<BR> Logic/Slicing/UnaryFunctorCache.h<BR> Logic/Slicing/UnaryFunctorCache.txx<BR> UserInterface/BasicComponents/FLTKCanvas.h<BR> UserInterface/BasicComponents/FLTKEvent.h<BR> UserInterface/BasicComponents/FunctionPlot2DBox.h<BR> UserInterface/BasicComponents/FunctionPlot2D.h<BR> UserInterface/BasicComponents/InteractionMode.h<BR> UserInterface/MainComponents/ImageIOWizardBase.h<BR> UserInterface/MainComponents/ImageIOWizardLogic.h<BR>
UserInterface/MainComponents/ImageIOWizardLogic.txx<BR> UserInterface/MainComponents/IntensityCurveBox.h<BR> UserInterface/MainComponents/IntensityCurveUIBase.h<BR> UserInterface/MainComponents/IntensityCurveUILogic.h<BR> UserInterface/MainComponents/PreprocessingUIBase.h<BR> UserInterface/MainComponents/PreprocessingUILogic.h<BR> UserInterface/MainComponents/UserInterfaceBase.h<BR> UserInterface/MainComponents/UserInterfaceLogic.h<BR> UserInterface/SliceWindow/BubblesInteractionMode.h<BR> UserInterface/SliceWindow/CrosshairsInteractionMode.h<BR> UserInterface/SliceWindow/GenericSliceWindow.h<BR> UserInterface/SliceWindow/IRISSliceWindow.h<BR> UserInterface/SliceWindow/OpenGLSliceTexture.h<BR> UserInterface/SliceWindow/PolygonDrawing.h<BR> UserInterface/SliceWindow/PolygonInteractionMode.h<BR> UserInterface/SliceWindow/RegionInteractionMode.h<BR>
UserInterface/SliceWindow/SNAPSliceWindow.h<BR> UserInterface/SliceWindow/ZoomPanInteractionMode.h<BR> UserInterface/Window3D/Trackball.h<BR> UserInterface/Window3D/Window3D.h<BR>)</DIV>
<DIV># The headers for the testing code<BR>SET(TESTING_HEADERS<BR> Testing/Compatibility/SnakeWrapper.h<BR> Testing/GUITestPadBase.h<BR> Testing/GUITestPadLogic.h<BR>)</DIV>
<DIV># The FL files for SNAP<BR>SET(COMMON_FLUIDS<BR> UserInterface/MainComponents/ImageIOWizard.fl<BR> UserInterface/MainComponents/IntensityCurveUI.fl<BR> UserInterface/MainComponents/PreprocessingUI.fl<BR> UserInterface/MainComponents/UserInterface.fl<BR>)</DIV>
<DIV># The FL files for testing<BR>SET(TESTING_FLUIDS<BR> Testing/GUITestPad.fl<BR>)</DIV>
<DIV># Documentation HTML files<BR>SET(DOCUMENTATION_HTML<BR> UserInterface/HTMLHelp/Tutorial.html<BR>)</DIV>
<DIV># Combined sources for the SNAP application<BR>SET(APPLICATION_SRCS<BR> ${COMMON_CXX} <BR> ${APPLICATION_CXX}<BR> ${COMMON_HEADERS}<BR>)</DIV>
<DIV># Combined sources for the testing application<BR>SET(TESTING_SRCS<BR> ${COMMON_CXX}<BR> ${TESTING_CXX}<BR> ${COMMON_HEADERS}<BR> ${TESTING_HEADERS}<BR>)</DIV>
<DIV># The SNAP executable<BR>ADD_GUI_EXECUTABLE(SNAP "${APPLICATION_SRCS}")</DIV>
<DIV># The testing executable<BR>ADD_GUI_EXECUTABLE(SNAPTests "${TESTING_SRCS}")</DIV>
<DIV># FLTK Wrapping<BR>FLTK_WRAP_UI(SNAP ${COMMON_FLUIDS})<BR>FLTK_WRAP_UI(SNAPTests ${COMMON_FLUIDS} ${TESTING_FLUIDS})</DIV>
<DIV>SET(ALL_FLUIDS ${COMMON_FLUIDS} ${TESTING_FLUIDS})<BR>ITK_DISABLE_FLTK_GENERATED_WARNINGS("${ALL_FLUIDS}")</DIV>
<DIV>#############################################<BR># LIBRARIES AND EXTERNAL CODE #<BR>#############################################</DIV>
<DIV># Shorthand to source and binary directories<BR>SET(MY_SOURCE_DIR ${InsightApplications_SOURCE_DIR}/SNAP)<BR>SET(MY_BINARY_DIR ${InsightApplications_BINARY_DIR}/SNAP)</DIV>
<DIV># Include directories<BR>INCLUDE_DIRECTORIES(<BR> ${MY_SOURCE_DIR}/Common<BR> ${MY_SOURCE_DIR}/Logic<BR> ${MY_SOURCE_DIR}/Logic/Common<BR> ${MY_SOURCE_DIR}/Logic/Framework<BR> ${MY_SOURCE_DIR}/Logic/ImageWrapper<BR> ${MY_SOURCE_DIR}/Logic/LevelSet<BR> ${MY_SOURCE_DIR}/Logic/Mesh<BR> ${MY_SOURCE_DIR}/Logic/Preprocessing<BR> ${MY_SOURCE_DIR}/Logic/Slicing<BR> ${MY_SOURCE_DIR}/Testing<BR> ${MY_SOURCE_DIR}/Testing/Compatibility<BR> ${MY_SOURCE_DIR}/Testing/Compatibility/CVS<BR> ${MY_SOURCE_DIR}/UserInterface<BR> ${MY_SOURCE_DIR}/UserInterface/BasicComponents<BR> ${MY_SOURCE_DIR}/UserInterface/HTMLHelp<BR> ${MY_SOURCE_DIR}/UserInterface/MainComponents<BR> ${MY_SOURCE_DIR}/UserInterface/MainComponents/Artwork<BR> ${MY_SOURCE_DIR}/UserInterface/SliceWindow<BR> ${MY_SOURCE_DIR}/UserInterface/Window3D<BR> ${MY_BINARY_DIR}/Testing<BR>
${MY_BINARY_DIR}/UserInterface/MainComponents<BR> ${FLTK_INCLUDE_PATH}<BR> ${OPENGL_INCLUDE_PATH}<BR>)</DIV>
<DIV># Link libraries<BR>SET(MY_GRAPHICS_LIBS<BR> vtkCommon<BR> vtkFiltering<BR> vtkGraphics<BR> vtkHybrid<BR> vtkImaging<BR> vtkRendering<BR> ${FLTK_LIBRARIES} <BR> ${OPENGL_glu_LIBRARY}<BR> ${OPENGL_LIBRARIES}<BR>)</DIV>
<DIV>SET(MY_ITK_LIBS<BR> ITKIO<BR>)</DIV>
<DIV>TARGET_LINK_LIBRARIES(SNAP ${MY_GRAPHICS_LIBS} ${MY_ITK_LIBS})<BR>TARGET_LINK_LIBRARIES(SNAPTests ${MY_GRAPHICS_LIBS} ${MY_ITK_LIBS})</DIV>
<DIV># Copy documentation from the source tree to the build tree<BR>FOREACH(DOCFILE ${DOCUMENTATION_HTML})<BR> CONFIGURE_FILE(<BR> ${MY_SOURCE_DIR}/${DOCFILE}<BR> ${MY_BINARY_DIR}/${DOCFILE}<BR> COPYONLY)<BR>ENDFOREACH(DOCFILE)<BR></DIV>
<DIV> </DIV>
<DIV>Thanks for helping</DIV>
<DIV>regards</DIV>
<DIV>jason<BR><BR><B><I>Luis Ibanez <luis.ibanez at kitware.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Jason,<BR><BR>This error message indicates that you have not provided<BR>all the FLTK components correctly when you run CMake<BR>for configuring your project.<BR><BR>Please look at the www.itk.org FAQ for details on how to<BR>configure a project for using FLTK.<BR><BR><BR>Regards,<BR><BR><BR>Luis<BR><BR><BR>----------------------<BR><BR><BR>a a wrote:<BR><BR>> Hi,<BR>> <BR>> i was trying to build SNAP out of the ITK, but got some errors in cmake, <BR>> such as: unknown cmake command Add_GUI_Executable, i know this is not a <BR>> cmake command and it's used for Mac.<BR>> <BR>> i'm using win XP, visual c++, and i've already included the typical Find <BR>> ITK, FLTK Package.. command lines inside the CMake list, can anyone <BR>> kindly describe how i can build the applications in Insight Apps outside <BR>> the source, thanks in advance<BR>>
<BR>> regards<BR>> jason<BR>> <BR><BR><BR><BR>_______________________________________________<BR>Insight-users mailing list<BR>Insight-users at itk.org<BR>http://www.itk.org/mailman/listinfo/insight-users</BLOCKQUOTE><p><img src=http://sg.yimg.com/i/sg/icons/16/perhearts.gif> <a
href="http://sg.rd.yahoo.com/mail/tagline/?http://asia.yahoo.com/lavalife"
target=_blank><B>Y! Asia presents Lavalife</b></a><br><small>- Stand a chance to win a dream date, join the <a
href="http://sg.rd.yahoo.com/mail/tagline/?http://sg.yahoo.com/dreamguy"
target=_blank>Dream Guy Contest</a>!</small>
--0-1329457753-1078200993=:82279--