]> Creatis software - clitk.git/blobdiff - CMakeLists.txt
enabling cdash with a localhost server
[clitk.git] / CMakeLists.txt
index 684ccd3e7b9a32d266b217e602acf0248d45c2de..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
-OPTION(CLITK_BUILD_TESTING "Build the testing tree" OFF)
-#=========================================================
-IF (CLITK_BUILD_TESTING)
-  ENABLE_TESTING()
-  ADD_SUBDIRECTORY(tests)
-ENDIF(CLITK_BUILD_TESTING)
-#=========================================================
-
 #=========================================================