]> Creatis software - creaTools.git/blobdiff - CMakeLists.txt
Added CMake configuration to enable CDash tests.
[creaTools.git] / CMakeLists.txt
index 99377fe8e97c92fddff9138cf95631ddcd235beb..710f91cc619f8acec571fe2496c527c5287057be 100644 (file)
@@ -27,6 +27,19 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(CreaTools)
 ###################################
 
+#-----------------------------------------------------------------------------
+# Configure Dart testing support.  This should be done before any
+# MESSAGE(FATAL_ERROR ...) commands are invoked.
+IF(INCLUDE_CTEST)
+  INCLUDE(CTest)
+  ENABLE_TESTING()
+ENDIF(INCLUDE_CTEST)
+IF(BUILD_TESTING)
+  SET(BUILDNAME "${BUILDNAME}" CACHE STRING "Name of build on the dashboard")
+  MARK_AS_ADVANCED(BUILDNAME)
+ENDIF(BUILD_TESTING)
+#-----------------------------------------------------------------------------
+
 #==================================
 # The project version
 SET(PROJECT_MAJOR_VERSION 2)