]> Creatis software - creaTools.git/blobdiff - CMakeLists.txt
Added CMake configuration to enable CDash tests.
[creaTools.git] / CMakeLists.txt
index b4e50b5021959c27eada6d5e2dbd7b85faab707d..710f91cc619f8acec571fe2496c527c5287057be 100644 (file)
@@ -27,11 +27,24 @@ 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)
 SET(PROJECT_MINOR_VERSION 2)
-SET(PROJECT_BUILD_VERSION 1)
+SET(PROJECT_BUILD_VERSION 2)
 #==================================
 
 # JPR 4 mars 2011
@@ -123,4 +136,4 @@ TODAY(CREATOOLS_COMPILATION_DATE)
 #ADD_SUBDIRECTORY(lib)
 ADD_SUBDIRECTORY(install)
 #==================================
-#==================================
\ No newline at end of file
+#==================================