]> Creatis software - creaImageIO.git/commitdiff
Added CMake configuration to enable CDash tests.
authorClaire Mouton <claire.mouton@creatis.insa-lyon.fr>
Thu, 13 Mar 2014 15:24:41 +0000 (16:24 +0100)
committerClaire Mouton <claire.mouton@creatis.insa-lyon.fr>
Thu, 13 Mar 2014 15:24:41 +0000 (16:24 +0100)
CMakeLists.txt

index e7e5bdd1ccec5c55af3217470dcfcfbbeaed8a69..4251d0a5f6b3f32b04aa12b52dac153826db3b15 100644 (file)
@@ -39,6 +39,19 @@ ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_
 PROJECT(creaImageIO)
 ###################################
 
+#-----------------------------------------------------------------------------
+# 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 1)