[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>&nbsp;</DIV>
<DIV>unknown cmake error "Add_GUI_Executable", "ITK_DISABLE_FLTK_GENERATED_WARNINGS"</DIV>
<DIV>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>#############################################<BR># PROJECT: SNAP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<BR>#############################################<BR>PROJECT(SNAP)</DIV>
<DIV>#############################################<BR># SOURCE FILE SPECIFICATION&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<BR>#############################################</DIV>
<DIV># Find ITK.<BR>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR>&nbsp; INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR>&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build without ITK.&nbsp; Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)</DIV>
<DIV><BR># Find FLTK.<BR>FIND_PACKAGE(FLTK)<BR>IF(FLTK_FOUND)<BR>&nbsp; INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})<BR>ELSE(FLTK_FOUND)<BR>&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Cannot build without FLTK.&nbsp; Please set FLTK_DIR.")<BR>ENDIF(FLTK_FOUND)</DIV>
<DIV>INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake)<BR>IF (USE_VTK_FILE)<BR>&nbsp; INCLUDE(${USE_VTK_FILE})<BR>ENDIF (USE_VTK_FILE)</DIV>
<DIV><BR># The source files that form the application<BR>SET(COMMON_CXX<BR>&nbsp; Common/CommandLineArgumentParser.cxx<BR>&nbsp; Common/IRISException.cxx<BR>&nbsp; Logic/Common/ImageCoordinateTransform.cxx<BR>&nbsp; Logic/Framework/GlobalState.cxx<BR>&nbsp; Logic/Framework/IRISApplication.cxx<BR>&nbsp; Logic/Framework/IRISImageData.cxx<BR>&nbsp; Logic/Framework/SNAPImageData.cxx<BR>&nbsp; Logic/ImageWrapper/GreyImageWrapperImplementation.cxx<BR>&nbsp; Logic/ImageWrapper/LabelImageWrapperImplementation.cxx<BR>&nbsp; Logic/ImageWrapper/LevelSetImageWrapperImplementation.cxx<BR>&nbsp; Logic/ImageWrapper/SpeedImageWrapperImplementation.cxx<BR>&nbsp; Logic/LevelSet/SnakeParameters.cxx<BR>&nbsp; Logic/LevelSet/SNAPLevelSetDriver.cxx<BR>&nbsp; Logic/Mesh/IRISMeshPipeline.cxx<BR>&nbsp; Logic/Mesh/LevelSetMeshPipeline.cxx<BR>&nbsp; Logic/Mesh/MeshObject.cxx<BR>&nbsp; Logic/Mesh/MeshOptions.cxx<BR>&nbsp; Logic/Preprocessing/EdgePreprocessingSettings.cxx<BR>&nbsp;
 Logic/Preprocessing/ThresholdSettings.cxx<BR>&nbsp; Logic/Slicing/IntensityCurveVTK.cxx<BR>&nbsp; UserInterface/BasicComponents/FLTKCanvas.cxx<BR>&nbsp; UserInterface/BasicComponents/FunctionPlot2DBox.cxx<BR>&nbsp; UserInterface/BasicComponents/FunctionPlot2D.cxx<BR>&nbsp; UserInterface/MainComponents/IntensityCurveBox.cxx<BR>&nbsp; UserInterface/MainComponents/IntensityCurveUILogic.cxx<BR>&nbsp; UserInterface/MainComponents/PreprocessingUILogic.cxx<BR>&nbsp; UserInterface/MainComponents/UserInterfaceLogic.cxx<BR>&nbsp; UserInterface/SliceWindow/BubblesInteractionMode.cxx<BR>&nbsp; UserInterface/SliceWindow/CrosshairsInteractionMode.cxx<BR>&nbsp; UserInterface/SliceWindow/GenericSliceWindow.cxx<BR>&nbsp; UserInterface/SliceWindow/IRISSliceWindow.cxx<BR>&nbsp; UserInterface/SliceWindow/PolygonDrawing.cxx<BR>&nbsp; UserInterface/SliceWindow/PolygonInteractionMode.cxx<BR>&nbsp; UserInterface/SliceWindow/RegionInteractionMode.cxx<BR>&nbsp;
 UserInterface/SliceWindow/SNAPSliceWindow.cxx<BR>&nbsp; UserInterface/SliceWindow/ZoomPanInteractionMode.cxx<BR>&nbsp; UserInterface/Window3D/Trackball.cxx<BR>&nbsp; UserInterface/Window3D/Window3D.cxx<BR>)</DIV>
<DIV># The source files for the SNAP application<BR>SET(APPLICATION_CXX<BR>&nbsp; UserInterface/SNAPMain.cxx<BR>)</DIV>
<DIV># The source files for testing<BR>SET(TESTING_CXX<BR>&nbsp; Testing/Compatibility/SnakeWrapper.cxx<BR>&nbsp; Testing/GUITestPadLogic.cxx<BR>&nbsp; Testing/ImageWrapperTest.cxx<BR>&nbsp; Testing/SnakeTest.cxx<BR>&nbsp; Testing/TestMain.cxx<BR>)</DIV>
<DIV># The header and template code files<BR>SET(COMMON_HEADERS<BR>&nbsp; Common/CommandLineArgumentParser.h<BR>&nbsp; Common/Credits.h<BR>&nbsp; Common/IRISException.h<BR>&nbsp; Common/IRISTypes.h<BR>&nbsp; Common/IRISVectorTypes.h<BR>&nbsp; Common/IRISVectorTypesToITKConversion.h<BR>&nbsp; Common/IRISVectorTypes.txx<BR>&nbsp; Logic/Common/ColorLabel.h<BR>&nbsp; Logic/Common/ImageCoordinateTransform.h<BR>&nbsp; Logic/Common/ImageRayIntersectionFinder.h<BR>&nbsp; Logic/Common/ImageRayIntersectionFinder.txx<BR>&nbsp; Logic/Framework/GlobalState.h<BR>&nbsp; Logic/Framework/IRISApplication.h<BR>&nbsp; Logic/Framework/IRISImageData.h<BR>&nbsp; Logic/Framework/SNAPImageData.h<BR>&nbsp; Logic/ImageWrapper/GreyImageWrapper.h<BR>&nbsp; Logic/ImageWrapper/GreyImageWrapperImplementation.h<BR>&nbsp; Logic/ImageWrapper/ImageWrapper.h<BR>&nbsp; Logic/ImageWrapper/ImageWrapperImplementation.h<BR>&nbsp; Logic/ImageWrapper/ImageWrapperImplementation.txx<BR>&nbsp;
 Logic/ImageWrapper/LabelImageWrapper.h<BR>&nbsp; Logic/ImageWrapper/LabelImageWrapperImplementation.h<BR>&nbsp; Logic/ImageWrapper/LevelSetImageWrapper.h<BR>&nbsp; Logic/ImageWrapper/LevelSetImageWrapperImplementation.h<BR>&nbsp; Logic/ImageWrapper/SpeedImageWrapper.h<BR>&nbsp; Logic/ImageWrapper/SpeedImageWrapperImplementation.h<BR>&nbsp; Logic/LevelSet/SnakeParameters.h<BR>&nbsp; Logic/LevelSet/SNAPAdvectionFieldImageFilter.h<BR>&nbsp; Logic/LevelSet/SNAPAdvectionFieldImageFilter.txx<BR>&nbsp; Logic/LevelSet/SNAPLevelSetDriver.h<BR>&nbsp; Logic/LevelSet/SNAPLevelSetFunction.h<BR>&nbsp; Logic/LevelSet/SNAPLevelSetFunction.txx<BR>&nbsp; Logic/LevelSet/SNAPLevelSetStopAndGoFilter.h<BR>&nbsp; Logic/LevelSet/SNAPLevelSetStopAndGoFilter.txx<BR>&nbsp; Logic/Mesh/IRISMeshPipeline.h<BR>&nbsp; Logic/Mesh/LevelSetMeshPipeline.h<BR>&nbsp; Logic/Mesh/MeshObject.h<BR>&nbsp; Logic/Mesh/MeshOptions.h<BR>&nbsp; Logic/Preprocessing/EdgePreprocessingImageFilter.h<BR>&nbsp;
 Logic/Preprocessing/EdgePreprocessingImageFilter.txx<BR>&nbsp; Logic/Preprocessing/EdgePreprocessingSettings.h<BR>&nbsp; Logic/Preprocessing/SmoothBinaryThresholdImageFilter.h<BR>&nbsp; Logic/Preprocessing/SmoothBinaryThresholdImageFilter.txx<BR>&nbsp; Logic/Preprocessing/ThresholdSettings.h<BR>&nbsp; Logic/Slicing/IntensityCurveInterface.h<BR>&nbsp; Logic/Slicing/IntensityCurveVTK.h<BR>&nbsp; Logic/Slicing/IRISSlicer.h<BR>&nbsp; Logic/Slicing/IRISSlicer.txx<BR>&nbsp; Logic/Slicing/UnaryFunctorCache.h<BR>&nbsp; Logic/Slicing/UnaryFunctorCache.txx<BR>&nbsp; UserInterface/BasicComponents/FLTKCanvas.h<BR>&nbsp; UserInterface/BasicComponents/FLTKEvent.h<BR>&nbsp; UserInterface/BasicComponents/FunctionPlot2DBox.h<BR>&nbsp; UserInterface/BasicComponents/FunctionPlot2D.h<BR>&nbsp; UserInterface/BasicComponents/InteractionMode.h<BR>&nbsp; UserInterface/MainComponents/ImageIOWizardBase.h<BR>&nbsp; UserInterface/MainComponents/ImageIOWizardLogic.h<BR>&nbsp;
 UserInterface/MainComponents/ImageIOWizardLogic.txx<BR>&nbsp; UserInterface/MainComponents/IntensityCurveBox.h<BR>&nbsp; UserInterface/MainComponents/IntensityCurveUIBase.h<BR>&nbsp; UserInterface/MainComponents/IntensityCurveUILogic.h<BR>&nbsp; UserInterface/MainComponents/PreprocessingUIBase.h<BR>&nbsp; UserInterface/MainComponents/PreprocessingUILogic.h<BR>&nbsp; UserInterface/MainComponents/UserInterfaceBase.h<BR>&nbsp; UserInterface/MainComponents/UserInterfaceLogic.h<BR>&nbsp; UserInterface/SliceWindow/BubblesInteractionMode.h<BR>&nbsp; UserInterface/SliceWindow/CrosshairsInteractionMode.h<BR>&nbsp; UserInterface/SliceWindow/GenericSliceWindow.h<BR>&nbsp; UserInterface/SliceWindow/IRISSliceWindow.h<BR>&nbsp; UserInterface/SliceWindow/OpenGLSliceTexture.h<BR>&nbsp; UserInterface/SliceWindow/PolygonDrawing.h<BR>&nbsp; UserInterface/SliceWindow/PolygonInteractionMode.h<BR>&nbsp; UserInterface/SliceWindow/RegionInteractionMode.h<BR>&nbsp;
 UserInterface/SliceWindow/SNAPSliceWindow.h<BR>&nbsp; UserInterface/SliceWindow/ZoomPanInteractionMode.h<BR>&nbsp; UserInterface/Window3D/Trackball.h<BR>&nbsp; UserInterface/Window3D/Window3D.h<BR>)</DIV>
<DIV># The headers for the testing code<BR>SET(TESTING_HEADERS<BR>&nbsp; Testing/Compatibility/SnakeWrapper.h<BR>&nbsp; Testing/GUITestPadBase.h<BR>&nbsp; Testing/GUITestPadLogic.h<BR>)</DIV>
<DIV># The FL files for SNAP<BR>SET(COMMON_FLUIDS<BR>&nbsp; UserInterface/MainComponents/ImageIOWizard.fl<BR>&nbsp; UserInterface/MainComponents/IntensityCurveUI.fl<BR>&nbsp; UserInterface/MainComponents/PreprocessingUI.fl<BR>&nbsp; UserInterface/MainComponents/UserInterface.fl<BR>)</DIV>
<DIV># The FL files for testing<BR>SET(TESTING_FLUIDS<BR>&nbsp; Testing/GUITestPad.fl<BR>)</DIV>
<DIV># Documentation HTML files<BR>SET(DOCUMENTATION_HTML<BR>&nbsp; UserInterface/HTMLHelp/Tutorial.html<BR>)</DIV>
<DIV># Combined sources for the SNAP application<BR>SET(APPLICATION_SRCS<BR>&nbsp; ${COMMON_CXX} <BR>&nbsp; ${APPLICATION_CXX}<BR>&nbsp; ${COMMON_HEADERS}<BR>)</DIV>
<DIV># Combined sources for the testing application<BR>SET(TESTING_SRCS<BR>&nbsp; ${COMMON_CXX}<BR>&nbsp; ${TESTING_CXX}<BR>&nbsp; ${COMMON_HEADERS}<BR>&nbsp; ${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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #<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>&nbsp; ${MY_SOURCE_DIR}/Common<BR>&nbsp; ${MY_SOURCE_DIR}/Logic<BR>&nbsp; ${MY_SOURCE_DIR}/Logic/Common<BR>&nbsp; ${MY_SOURCE_DIR}/Logic/Framework<BR>&nbsp; ${MY_SOURCE_DIR}/Logic/ImageWrapper<BR>&nbsp; ${MY_SOURCE_DIR}/Logic/LevelSet<BR>&nbsp; ${MY_SOURCE_DIR}/Logic/Mesh<BR>&nbsp; ${MY_SOURCE_DIR}/Logic/Preprocessing<BR>&nbsp; ${MY_SOURCE_DIR}/Logic/Slicing<BR>&nbsp; ${MY_SOURCE_DIR}/Testing<BR>&nbsp; ${MY_SOURCE_DIR}/Testing/Compatibility<BR>&nbsp; ${MY_SOURCE_DIR}/Testing/Compatibility/CVS<BR>&nbsp; ${MY_SOURCE_DIR}/UserInterface<BR>&nbsp; ${MY_SOURCE_DIR}/UserInterface/BasicComponents<BR>&nbsp; ${MY_SOURCE_DIR}/UserInterface/HTMLHelp<BR>&nbsp; ${MY_SOURCE_DIR}/UserInterface/MainComponents<BR>&nbsp; ${MY_SOURCE_DIR}/UserInterface/MainComponents/Artwork<BR>&nbsp; ${MY_SOURCE_DIR}/UserInterface/SliceWindow<BR>&nbsp; ${MY_SOURCE_DIR}/UserInterface/Window3D<BR>&nbsp; ${MY_BINARY_DIR}/Testing<BR>&nbsp;
 ${MY_BINARY_DIR}/UserInterface/MainComponents<BR>&nbsp; ${FLTK_INCLUDE_PATH}<BR>&nbsp; ${OPENGL_INCLUDE_PATH}<BR>)</DIV>
<DIV># Link libraries<BR>SET(MY_GRAPHICS_LIBS<BR>&nbsp; vtkCommon<BR>&nbsp; vtkFiltering<BR>&nbsp; vtkGraphics<BR>&nbsp; vtkHybrid<BR>&nbsp; vtkImaging<BR>&nbsp; vtkRendering<BR>&nbsp; ${FLTK_LIBRARIES} <BR>&nbsp; ${OPENGL_glu_LIBRARY}<BR>&nbsp; ${OPENGL_LIBRARIES}<BR>)</DIV>
<DIV>SET(MY_ITK_LIBS<BR>&nbsp; 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>&nbsp; CONFIGURE_FILE(<BR>&nbsp;&nbsp;&nbsp; ${MY_SOURCE_DIR}/${DOCFILE}<BR>&nbsp;&nbsp;&nbsp; ${MY_BINARY_DIR}/${DOCFILE}<BR>&nbsp;&nbsp;&nbsp; COPYONLY)<BR>ENDFOREACH(DOCFILE)<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for helping</DIV>
<DIV>regards</DIV>
<DIV>jason<BR><BR><B><I>Luis Ibanez &lt;luis.ibanez at kitware.com&gt;</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>&gt; Hi,<BR>&gt; <BR>&gt; i was trying to build SNAP out of the ITK, but got some errors in cmake, <BR>&gt; such as: unknown cmake command Add_GUI_Executable, i know this is not a <BR>&gt; cmake command and it's used for Mac.<BR>&gt; <BR>&gt; i'm using win XP, visual c++, and i've already included the typical Find <BR>&gt; ITK, FLTK Package.. command lines inside the CMake list, can anyone <BR>&gt; kindly describe how i can build the applications in Insight Apps outside <BR>&gt; the source, thanks in advance<BR>&gt;
 <BR>&gt; regards<BR>&gt; jason<BR>&gt; <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--