From: Claire Mouton Date: Thu, 13 Mar 2014 14:23:53 +0000 (+0100) Subject: Added CTest support for CDash. X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=11c8f267f038c03000f746352001d20cd93de6ef;p=bbtk.git Added CTest support for CDash. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9885215..bd3c079 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,6 +37,19 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.4) PROJECT(bbtk) #----------------------------------------------------------------------------- +#----------------------------------------------------------------------------- +# 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) +#----------------------------------------------------------------------------- + #----------------------------------------------------------------------------- # Set global configuration of the toolkit INCLUDE(kernel/cmake/BBTKRootCMakeLists.cmake NO_POLICY_SCOPE )