X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=8dafc522fee7090b7c72870d26fd3795bd8227f8;hb=1082efd7788c15fb139380241a328a5ff187634c;hp=c0e8650b0f61eec98ba6826052f8eabb47d89855;hpb=06bcddb8e6657b112895c5a0a4679f63d6e6865e;p=bbtkGEditor.git diff --git a/CMakeLists.txt b/CMakeLists.txt index c0e8650..8dafc52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,19 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT( bbtkGEditor ) ################################### +#----------------------------------------------------------------------------- +# 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 1)