]> Creatis software - clitk.git/blobdiff - CMakeLists.txt
Updates in testing
[clitk.git] / CMakeLists.txt
index de9c55b0006aa0f489a39da99e1a281bdf0cfc3f..ea1eb4728e6daccea44fcb8140191e72de16d31b 100644 (file)
@@ -99,11 +99,12 @@ ENDIF(CLITK_BUILD_VV)
 
 #=========================================================
 #Support for the CTest dashboard testing system
-INCLUDE(CTest)
+OPTION(CLITK_BUILD_TESTING "Build the testing tree" OFF)
 #=========================================================
-IF (BUILD_TESTING)
+IF (CLITK_BUILD_TESTING)
+  ENABLE_TESTING()
   ADD_SUBDIRECTORY(tests)
-ENDIF(BUILD_TESTING)
+ENDIF(CLITK_BUILD_TESTING)
 #=========================================================