X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=6b30472e8ff58436252ba9a132a146b375bcd931;hb=c361c11f0875b493f99ed8dca7796dd1bd4535f9;hp=3670af5a4d90eea3ed10f192d41314e87660bd08;hpb=25e34ab26032bd169b35a883c4b02e55d5a8c6dc;p=clitk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 3670af5..6b30472 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) @@ -62,20 +65,14 @@ INCLUDE_DIRECTORIES(itk filters segmentation registration tools ${PROJECT_BINARY # Select what is compiled 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" ON) -IF (CLITK_BUILD_SEGMENTATION) - add_subdirectory(segmentation) -ENDIF (CLITK_BUILD_SEGMENTATION) - +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)