X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CTestConfig.cmake;h=3a20d28372ab8aae7b947179f545767d77a20839;hb=ae015f09e2fa0ebc736d24b37c9ed6c1ca0cb5b2;hp=6eb9c8669416b568cfaf98c2604c996195e222c3;hpb=bd1f811abb8c82158d96efa4ab11ee238ee227d9;p=clitk.git diff --git a/CTestConfig.cmake b/CTestConfig.cmake index 6eb9c86..3a20d28 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -1,18 +1,12 @@ -set(CTEST_PROJECT_NAME "vv_itk4") -set(CTEST_NIGHTLY_START_TIME "1:00:00 UTC") +macro(SET_IF_NOT_SET var val) + if(NOT DEFINED "${var}") + set("${var}" "${val}") + endif(NOT DEFINED "${var}") +endmacro(SET_IF_NOT_SET) -set(CTEST_DROP_METHOD "http") -set(CTEST_DROP_SITE "my.cdash.org") -set(CTEST_DROP_LOCATION "/submit.php?project=VV") -set(CTEST_DROP_SITE_CDASH TRUE) - - -#========================================================= -SET(CLITK_TEST_DATA_PATH ${PROJECT_BINARY_DIR}/tests/data CACHE INTERNAL DOCSTRING) -# Get the data tests -IF(WIN32) - SET(scriptExt bat) -ELSE(UNIX) - SET(scriptExt sh) -ENDIF() -EXEC_PROGRAM(${PROJECT_SOURCE_DIR}/tests/fetch_data_test.${scriptExt} ARGS ${CLITK_TEST_DATA_PATH} http://russule/data/.git) \ No newline at end of file +# Those are set for running a classical make Experimental +SET_IF_NOT_SET(CTEST_DROP_METHOD "http") +SET_IF_NOT_SET(CTEST_DROP_SITE "my.cdash.org") +SET_IF_NOT_SET(CTEST_DROP_LOCATION "/submit.php?project=VV") +SET_IF_NOT_SET(CTEST_DROP_SITE_CDASH TRUE) +SET_IF_NOT_SET(CTEST_PROJECT_NAME "vv_itk4")