X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=0e56357df0282a466c4ffb584b128ec63c79bcbf;hb=ec55f1d5b6e32c6e4bc0cfa2e3174706729a156e;hp=06d7ff717264462b4cf99e1f430c1a1d30629b22;hpb=959d91564af1b0e33303f3c15d803d2dafcaa54d;p=clitk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 06d7ff7..0e56357 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,12 +11,15 @@ PROJECT(clitk) #========================================================= INCLUDE(cmake/common.cmake) #========================================================= +#Support for the CTest dashboard testing system +INCLUDE(CTest) +#========================================================= #========================================================= # Find ITK (required) FIND_PACKAGE(ITK) IF(ITK_FOUND) - INCLUDE(${ITK_USE_FILE}) + INCLUDE("${ITK_USE_FILE}") ELSE(ITK_FOUND) MESSAGE(FATAL_ERROR "Cannot build without ITK. Please set ITK_DIR.") @@ -27,7 +30,7 @@ ENDIF(ITK_FOUND) # Find VTK (required) FIND_PACKAGE(VTK REQUIRED) IF(VTK_FOUND) - INCLUDE(${VTK_USE_FILE}) + INCLUDE("${VTK_USE_FILE}") ELSE(VTK_FOUND) MESSAGE(FATAL_ERROR "Please set VTK_DIR.") ENDIF(VTK_FOUND) @@ -57,28 +60,25 @@ ENDIF(MSVC) #========================================================= #========================================================= -INCLUDE_DIRECTORIES(itk filters ${PROJECT_BINARY_DIR}) +INCLUDE_DIRECTORIES(itk filters segmentation registration tools ${PROJECT_BINARY_DIR}) # Select what is compiled ADD_SUBDIRECTORY(common) -ADD_SUBDIRECTORY(filters) +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 command-line segmentation tools" OFF) +OPTION(CLITK_BUILD_REGISTRATION "Build command-line registration tools" OFF) +OPTION(CLITK_MEMORY_INFO "Enable memory information" OFF) OPTION(CLITK_BUILD_VV "Build vv the 4D visualizer (requires VTK and QT)" ON) IF (CLITK_BUILD_VV) add_subdirectory(vv) ENDIF(CLITK_BUILD_VV) -OPTION(CLITK_BUILD_TOOLS "Build command-line tools" OFF) -IF (CLITK_BUILD_TOOLS) - add_subdirectory(tools) -ENDIF(CLITK_BUILD_TOOLS) - -OPTION(CLITK_BUILD_SEGMENTATION "Build segmentation tools" OFF) -IF (CLITK_BUILD_SEGMENTATION) - add_subdirectory(segmentation) -ENDIF (CLITK_BUILD_SEGMENTATION) #=========================================================