X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=a29891d347014c1b27f9be585561c90dff68996a;hb=1ec47c5838e94f0ff1606093ae3998fc239a3191;hp=ea1eb4728e6daccea44fcb8140191e72de16d31b;hpb=4a97517996cc04de6f0285cdd4fbbb40b269a6b3;p=clitk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index ea1eb47..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) @@ -97,16 +105,5 @@ IF (CLITK_BUILD_VV) ENDIF(CLITK_BUILD_VV) -#========================================================= -#Support for the CTest dashboard testing system -OPTION(CLITK_BUILD_TESTING "Build the testing tree" OFF) -#========================================================= -IF (CLITK_BUILD_TESTING) - ENABLE_TESTING() - ADD_SUBDIRECTORY(tests) -ENDIF(CLITK_BUILD_TESTING) -#========================================================= - - #=========================================================