[Insight-users] Error in GaussianFilter configuration when I attempt to build it outside InsightApplications
anna han wan
anna.han.wan at gmail.com
Thu Sep 6 07:17:54 EDT 2012
Hi,
I am trying to build and run GaussianFilter outside InsightApplications in
order to understand how I can build a FLTK based GUI application. I manage
to build successfully FltkImageViewer which is used by GaussianFilter
application. Of course I copied both folders outside InsightApplications
and put them in one directory.
When I try to configure GaussianFilter by Cmake I get the following error:
CMake Error at CMakeLists.txt:56 (ADD_GUI_EXECUTABLE):
Unknown CMake command "ADD_GUI_EXECUTABLE".
I read most of similar posting but I could not fix this error. Of course I
have provided all FLTK components to Cmake and itk ,vtk paths as well.
Attached is the CMakeLists file I am using for GaussianFilter.
Any help or suggestion is appreciated…I really need your help as I am stack
in this for more than a week now.
Thanks,
Anna.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120906/ee221fef/attachment.htm>
-------------- next part --------------
PROJECT(GaussianFilter)
FIND_PACKAGE(ITK REQUIRED)
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
ENDIF(ITK_FOUND)
FIND_PACKAGE(VTK REQUIRED)
IF(VTK_FOUND)
INCLUDE(${VTK_USE_FILE})
ENDIF(VTK_FOUND)
FIND_PACKAGE(FLTK REQUIRED)
IF(FLTK_FOUND)
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ENDIF(FLTK_FOUND)
INCLUDE_DIRECTORIES(
${FltkImageViewer_SOURCE_DIR}
${FltkImageViewer_BINARY_DIR}
${GaussianFilter_SOURCE_DIR}
${GaussianFilter_BINARY_DIR}
)
SET(GaussianFilter_SRCS
liFilterConsole.cxx
liFilterConsoleBase.cxx
GaussianFilter.cxx
)
SET(GaussianFilter2D_SRCS
liFilterConsole2D.cxx
liFilterConsole2DBase.cxx
GaussianFilter2D.cxx
)
FLTK_WRAP_UI(GaussianFilter liFilterConsoleGUI.fl)
FLTK_WRAP_UI(GaussianFilter2D liFilterConsole2DGUI.fl)
SET(GaussianFilter_SRCS
${GaussianFilter_SRCS}
${GaussianFilter_FLTK_UI_SRCS}
)
SET(GaussianFilter2D_SRCS
${GaussianFilter2D_SRCS}
${GaussianFilter2D_FLTK_UI_SRCS}
)
ADD_GUI_EXECUTABLE(GaussianFilter "${GaussianFilter_SRCS}")
ADD_GUI_EXECUTABLE(GaussianFilter2D "${GaussianFilter2D_SRCS}")
ITK_DISABLE_FLTK_GENERATED_WARNINGS(GaussianFilter.cxx)
ITK_DISABLE_FLTK_GENERATED_WARNINGS(liFilterConsole.cxx)
ITK_DISABLE_FLTK_GENERATED_WARNINGS(liFilterConsoleGUI.cxx)
ITK_DISABLE_FLTK_GENERATED_WARNINGS(liFilterConsole2D.cxx)
ITK_DISABLE_FLTK_GENERATED_WARNINGS(liFilterConsole2DGUI.cxx)
TARGET_LINK_LIBRARIES(GaussianFilter ITKFltkImageViewer ITKIO ITKBasicFilters)
TARGET_LINK_LIBRARIES(GaussianFilter2D ITKFltkImageViewer ITKIO ITKBasicFilters)
More information about the Insight-users
mailing list