From 71b11717d7200387e8dff41ce3ebca2873abf859 Mon Sep 17 00:00:00 2001 From: schaerer Date: Sun, 1 Aug 2010 15:33:05 +0000 Subject: [PATCH] fix dependency problems --- CMakeLists.txt | 7 ++----- tools/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 694d7b6..4ccd497 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 7d5d5e0..a26a4bc 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -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) -- 2.47.1