X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CTestConfig.cmake;h=3a20d28372ab8aae7b947179f545767d77a20839;hb=7d4e77191e55f668f316ba3ddf0fddb63e59bd25;hp=c93aa62acfb944b829c9978826f637723c33699f;hpb=7861c7dc29ff0f8cdfd7a929034eb63cc29d6703;p=clitk.git diff --git a/CTestConfig.cmake b/CTestConfig.cmake index c93aa62..3a20d28 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -1,11 +1,12 @@ -# Set them in a dart file when using ctest to submit on an other dashboard +macro(SET_IF_NOT_SET var val) + if(NOT DEFINED "${var}") + set("${var}" "${val}") + endif(NOT DEFINED "${var}") +endmacro(SET_IF_NOT_SET) + # 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") -SET_IF_NOT_SET(CTEST_NIGHTLY_START_TIME "1:00:00 UTC") - -#========================================================= -SET(CLITK_TEST_DATA_PATH ${PROJECT_BINARY_DIR}/tests/data/ CACHE INTERNAL DOCSTRING) \ No newline at end of file