]> Creatis software - clitk.git/commitdiff
fix dependency problems
authorschaerer <schaerer>
Sun, 1 Aug 2010 15:33:05 +0000 (15:33 +0000)
committerschaerer <schaerer>
Sun, 1 Aug 2010 15:33:05 +0000 (15:33 +0000)
CMakeLists.txt
tools/CMakeLists.txt

index 694d7b62f125c920577d8b3e9fd825746a9adefd..4ccd497d5f0c7ef62ea402fc28b0a11be21c2a4f 100644 (file)
@@ -63,16 +63,13 @@ INCLUDE_DIRECTORIES(itk filters segmentation registration tools ${PROJECT_BINARY
 ADD_SUBDIRECTORY(common)
 add_subdirectory(tools)
 add_subdirectory(segmentation)
+add_subdirectory(registration)
 
 # Compilation options
 OPTION(CLITK_EXPERIMENTAL "Enable experimental software and features" OFF)
 OPTION(CLITK_BUILD_TOOLS "Build command-line tools" OFF)
-OPTION(CLITK_BUILD_SEGMENTATION "Build segmentation tools" OFF)
-
+OPTION(CLITK_BUILD_SEGMENTATION "Build command-line segmentation tools" OFF)
 OPTION(CLITK_BUILD_REGISTRATION "Build command-line registration tools" OFF)
-IF (CLITK_BUILD_REGISTRATION)
-  add_subdirectory(registration)
-ENDIF(CLITK_BUILD_REGISTRATION)
 
 OPTION(CLITK_BUILD_VV "Build vv the 4D visualizer (requires VTK and QT)" ON)
 IF (CLITK_BUILD_VV)
index 7d5d5e0bc711899df9de5744769440dcb1fc8755..a26a4bc7d666892af49206a9a0ab120bd5832da2 100644 (file)
@@ -15,6 +15,7 @@ ADD_LIBRARY(clitkToolsGgoLib ${GGO_C_FILES})
 ADD_LIBRARY(clitkImageConvertLib clitkImageConvertGenericFilter.cxx)
 ADD_LIBRARY(clitkImageResampleLib clitkImageResampleGenericFilter.cxx)
 ADD_LIBRARY(clitkBinarizeImageLib clitkBinarizeImageGenericFilter.cxx)
+TARGET_LINK_LIBRARIES(clitkBinarizeImageLib clitkToolsGgoLib)
 
 IF (CLITK_BUILD_TOOLS)
     WRAP_GGO(clitkDicomInfo_GGO_C clitkDicomInfo.ggo)