X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=c256e1dd57cc6c09da1d6c727c990cf9a4583d53;hb=7ad4747929973532c76b1a2256aa6ea5598afe74;hp=53f87ec4b22dd0921c48c5e66b75ae6889e51783;hpb=b454fb015d39789dbc0588ab4b680c2f3fcffd54;p=crea.git 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}