X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=bafa814eb5b58371de62f3735207d8b2e97d0621;hb=f2ada625416b8aa70c03577e189f98db28bb6c72;hp=0f89e8882f8e808f91e1becdd4fd1f10f308cf44;hpb=ec4340872e02a4f064102f950d3914256f1d7c97;p=creaEnvironment.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f89e88..bafa814 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,19 @@ ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_ PROJECT(creaEnvironment) +#----------------------------------------------------------------------------- +# 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(PROJECT_MAJOR_VERSION 1) SET(PROJECT_MINOR_VERSION 1) SET(PROJECT_BUILD_VERSION 0)