From 7ad4747929973532c76b1a2256aa6ea5598afe74 Mon Sep 17 00:00:00 2001 From: Claire Mouton Date: Fri, 7 Mar 2014 19:35:43 +0100 Subject: [PATCH] Added instructions in CMakeLists.txt allowing CDash execution when INCLUDE_CTEST=ON and BUILD_TESTING=ON. --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 53f87ec..c256e1d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,18 @@ 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} -- 2.45.0