X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=creaRigidRegistration.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=43ae6064a6184cfd159f570d68e38f4324b1f566;hp=250282db54c60999c363012bcdbc92fda4960734;hb=4bfdf44855a31883e66739394d0f7e995b2e5753;hpb=74608070251fc1e5646fc0bf16be33cef8c10d82 diff --git a/CMakeLists.txt b/CMakeLists.txt index 250282d..43ae606 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,19 @@ ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_ PROJECT(creaRigidRegistration) ################################### +#----------------------------------------------------------------------------- +# 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)