From: Maxime Date: Fri, 6 May 2011 15:47:42 +0000 (+0200) Subject: enabling cdash with a localhost server X-Git-Tag: v1.2.1~36 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=310bd00be1034985f6e089732666adcf717c0385;p=clitk.git enabling cdash with a localhost server --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 684ccd3..a29891d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,14 @@ PROJECT(clitk) INCLUDE(cmake/common.cmake) #========================================================= +#========================================================= +#Support for the CTest dashboard testing system +OPTION(BUILD_TESTING "Build the testing tree" OFF) +IF (BUILD_TESTING) + INCLUDE(CTest) +ENDIF(BUILD_TESTING) +#========================================================= + #========================================================= # Find ITK (required) FIND_PACKAGE(ITK) @@ -97,15 +105,5 @@ IF (CLITK_BUILD_VV) ENDIF(CLITK_BUILD_VV) -#========================================================= -#Support for the CTest dashboard testing system -OPTION(CLITK_BUILD_TESTING "Build the testing tree" OFF) -#========================================================= -IF (CLITK_BUILD_TESTING) - ENABLE_TESTING() - ADD_SUBDIRECTORY(tests) -ENDIF(CLITK_BUILD_TESTING) -#========================================================= - #========================================================= diff --git a/CTestConfig.cmake b/CTestConfig.cmake index 81c2402..7d86bb0 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -1,7 +1,12 @@ -set(CTEST_PROJECT_NAME "vv_itk4") -set(CTEST_NIGHTLY_START_TIME "1:00:00 UTC") - -set(CTEST_DROP_METHOD "http") -set(CTEST_DROP_SITE "www.cdash.org") -set(CTEST_DROP_LOCATION "/CDash/submit.php?project=Insight") +SET(CTEST_PROJECT_NAME "vv") +SET(CTEST_NIGHTLY_START_TIME "00:00:00 EST") set(CTEST_DROP_SITE_CDASH TRUE) +IF(NOT DEFINED CTEST_DROP_METHOD) + SET(CTEST_DROP_METHOD "http") +ENDIF(NOT DEFINED CTEST_DROP_METHOD) + +IF(CTEST_DROP_METHOD STREQUAL "http") + SET(CTEST_DROP_SITE "localhost") + SET(CTEST_DROP_LOCATION "/cdash/submit.php?project=vv") + SET(CTEST_TRIGGER_SITE "") +ENDIF(CTEST_DROP_METHOD STREQUAL "http")