X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=8dafc522fee7090b7c72870d26fd3795bd8227f8;hb=HEAD;hp=c0e8650b0f61eec98ba6826052f8eabb47d89855;hpb=1590895a68260582cc2cc426a6d7c48235820fbc;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)