X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=8ce5b58371c0804f5ff99368987b438c9306422d;hb=5a79dfb9e4860dc684c7bde0765c5de2b792891b;hp=897fd2eea0722a5615f9e2b0835793d7f6c479b1;hpb=e7d09558fdedfb7fba8b5fe40d9ab5b7ff5b7684;p=clitk.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 897fd2e..8ce5b58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,6 @@ OPTION(BUILD_TESTING "Build the testing tree" OFF) IF (BUILD_TESTING) OPTION(CLITK_BUILD_TESTING "Test ITK" ON) INCLUDE(CTest) - ADD_SUBDIRECTORY(tests) ENDIF(BUILD_TESTING) #========================================================= @@ -90,9 +89,9 @@ 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) +ADD_SUBDIRECTORY(tools) +ADD_SUBDIRECTORY(segmentation) +ADD_SUBDIRECTORY(registration) # Compilation options @@ -108,4 +107,7 @@ ENDIF(CLITK_BUILD_VV) #========================================================= - +# Build test when vv has been compiled +IF(BUILD_TESTING) + ADD_SUBDIRECTORY(tests) +ENDIF(BUILD_TESTING)