]> Creatis software - clitk.git/blobdiff - CMakeLists.txt
Removed call to UpdateOrientation in SetFusion and SetOverlay to avoid
[clitk.git] / CMakeLists.txt
index a29891d347014c1b27f9be585561c90dff68996a..8ce5b58371c0804f5ff99368987b438c9306422d 100644 (file)
@@ -16,6 +16,7 @@ INCLUDE(cmake/common.cmake)
 #Support for the CTest dashboard testing system
 OPTION(BUILD_TESTING "Build the testing tree" OFF)
 IF (BUILD_TESTING)
+  OPTION(CLITK_BUILD_TESTING "Test ITK" ON)
   INCLUDE(CTest)
 ENDIF(BUILD_TESTING)
 #=========================================================
@@ -88,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
@@ -106,4 +107,7 @@ ENDIF(CLITK_BUILD_VV)
 
 
 #=========================================================
-
+# Build test when vv has been compiled
+IF(BUILD_TESTING)
+  ADD_SUBDIRECTORY(tests)
+ENDIF(BUILD_TESTING)