]> Creatis software - clitk.git/blobdiff - CMakeLists.txt
enabling cdash with a localhost server
[clitk.git] / CMakeLists.txt
index de9c55b0006aa0f489a39da99e1a281bdf0cfc3f..a29891d347014c1b27f9be585561c90dff68996a 100644 (file)
@@ -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,15 +105,5 @@ IF (CLITK_BUILD_VV)
 ENDIF(CLITK_BUILD_VV)
 
 
-#=========================================================
-#Support for the CTest dashboard testing system
-INCLUDE(CTest)
-#=========================================================
-IF (BUILD_TESTING)
-  ADD_SUBDIRECTORY(tests)
-ENDIF(BUILD_TESTING)
-#=========================================================
-
-
 #=========================================================