X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=CMakeLists.txt;h=a29891d347014c1b27f9be585561c90dff68996a;hb=1ec47c5838e94f0ff1606093ae3998fc239a3191;hp=6f3a808b32ac68a1442317950512230e03110907;hpb=15a5a2146a9429085a0827e1edf57c2cf0fa3861;p=clitk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f3a808..a29891d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,14 @@ PROJECT(clitk) INCLUDE(cmake/common.cmake) #========================================================= +#========================================================= +#Support for the CTest dashboard testing system +OPTION(BUILD_TESTING "Build the testing tree" OFF) +IF (BUILD_TESTING) + INCLUDE(CTest) +ENDIF(BUILD_TESTING) +#========================================================= + #========================================================= # Find ITK (required) FIND_PACKAGE(ITK) @@ -44,7 +52,7 @@ ENDIF (CLITK_GENGETOPT STREQUAL "CLITK_GENGETOPT-NOTFOUND") # Find libstatgrab is installed, add clitkMemoryUsage.cxx in the library FIND_LIBRARY(LIBSTATGRAB NAMES statgrab PATHS) IF (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") - MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information") +# MESSAGE("Install libstatgrab (http://www.i-scream.org/libstatgrab/) for memory usage information") SET(CLITK_MEMORY_INFO OFF) ELSE (${LIBSTATGRAB} MATCHES "LIBSTATGRAB-NOTFOUND") SET(CLITK_MEMORY_INFO ON) @@ -93,18 +101,9 @@ OPTION(CLITK_BUILD_REGISTRATION "Build command-line registration tools" OFF) OPTION(CLITK_BUILD_VV "Build vv the 4D visualizer (requires VTK and QT)" ON) IF (CLITK_BUILD_VV) - add_subdirectory(vv) + ADD_SUBDIRECTORY(vv) ENDIF(CLITK_BUILD_VV) -#========================================================= -#Support for the CTest dashboard testing system -INCLUDE(CTest) -#========================================================= -add_subdirectory(tests) -add_subdirectory(tests/tools) -#========================================================= - - #=========================================================