]> Creatis software - bbtkGEditor.git/blobdiff - CMakeLists.txt
Added CMake configuration to enable tests with CDash.
[bbtkGEditor.git] / CMakeLists.txt
index c0e8650b0f61eec98ba6826052f8eabb47d89855..8dafc522fee7090b7c72870d26fd3795bd8227f8 100644 (file)
@@ -35,6 +35,19 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT( bbtkGEditor )
 ###################################
 
+#-----------------------------------------------------------------------------
+# 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)