From: Claire Mouton Date: Fri, 7 Mar 2014 18:35:43 +0000 (+0100) Subject: Added instructions in CMakeLists.txt allowing CDash execution when INCLUDE_CTEST... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7ad4747929973532c76b1a2256aa6ea5598afe74;p=crea.git Added instructions in CMakeLists.txt allowing CDash execution when INCLUDE_CTEST=ON and BUILD_TESTING=ON. --- 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}