]> Creatis software - crea.git/commitdiff
Added instructions in CMakeLists.txt allowing CDash execution when INCLUDE_CTEST...
authorClaire Mouton <claire.mouton@creatis.insa-lyon.fr>
Fri, 7 Mar 2014 18:35:43 +0000 (19:35 +0100)
committerClaire Mouton <claire.mouton@creatis.insa-lyon.fr>
Fri, 7 Mar 2014 18:35:43 +0000 (19:35 +0100)
CMakeLists.txt

index 53f87ec4b22dd0921c48c5e66b75ae6889e51783..c256e1dd57cc6c09da1d6c727c990cf9a4583d53 100644 (file)
 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
 PROJECT(crea)
 
+#-----------------------------------------------------------------------------
+# 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)
+
 INCLUDE(Version.cmake)
 
 SET(CREA_LIBRARY_PROPERTIES ${CREA_LIBRARY_PROPERTIES}