[Insight-users] ITK + FLTK compile error
Luis Ibanez
luis.ibanez@kitware.com
Thu May 20 17:56:38 EDT 2004
Hi Alex,
Please post the CMakeCache.txt file that CMake
generates in the Binary directory where you are
trying to build InsightApplications.
Thanks
Luis
----------------------
Alex Houston wrote:
> Hi
>
> I am trying to run the program
> InsightApplications/RegionGrowingSegmentation
>
> I have ITK version 1.6 , FLTK 1.1.4 and cmake 1.8 patch 3 and I am using
> .net
>
> I get the error "unknow command ADD_GUI_EXCUTABLE"
>
> All the directories and lib files are set correctly in cmake window { 4
> FLTK lib, fluid executable and fltk include are all set coorectly}
>
> below is CMakeLists.txt
>
> PROJECT( RegionGrowingSegmentation )
>
> 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_PACKAGE(FLTK)
> IF(FLTK_FOUND)
> INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
> ELSE(FLTK_FOUND)
> MESSAGE(FATAL_ERROR
> "Cannot build without FLTK. Please set FLTK components.")
> ENDIF(FLTK_FOUND)
>
> SET(RegionGrowingSegmentation_SRCS
> RegionGrowingSegmentationBase.cxx
> RegionGrowingSegmentation.cxx
> )
> SET(RegionGrowingSegmentation_GUI_SRCS
> RegionGrowingSegmentationGUI.fl
> )
> ADD_GUI_EXECUTABLE(RegionGrowingSegmentation
> "${RegionGrowingSegmentation_SRCS}")
> FLTK_WRAP_UI( RegionGrowingSegmentation
> ${RegionGrowingSegmentation_GUI_SRCS} )
>
>
> Thanks
> A. Houston
>
> PS: is it Anything to do with TARGET_LINK_LIBRARIES or INCLUDE_DIRECTORIES
>
>
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Domains - Claim yours for only $14.70/year
> <http://us.rd.yahoo.com/evt=23613/*http://smallbusiness.promotions.yahoo.com/offer>
>
More information about the Insight-users
mailing list