X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=710f91cc619f8acec571fe2496c527c5287057be;hb=f8f770d58c0169b859740dd09ed636c2db9cf4ad;hp=99377fe8e97c92fddff9138cf95631ddcd235beb;hpb=592cbb6fb235115aa8cd5851870477114bbb78e6;p=creaTools.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 99377fe..710f91c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,19 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(CreaTools) ################################### +#----------------------------------------------------------------------------- +# 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 2)