From: mpech Date: Fri, 22 Jul 2011 15:05:17 +0000 (+0200) Subject: The data repository must be cloned and pulled by the user X-Git-Tag: v1.3.0~274^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=sidebyside;h=278bf98285ad8ed820e52f1fa3c9c37873040c9d;hp=-c;p=clitk.git The data repository must be cloned and pulled by the user --- 278bf98285ad8ed820e52f1fa3c9c37873040c9d diff --git a/CTestConfig.cmake b/CTestConfig.cmake index ac1f6fc..15bbadd 100644 --- a/CTestConfig.cmake +++ b/CTestConfig.cmake @@ -10,6 +10,3 @@ 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(CLITK_TEST_DATA_PATH ${PROJECT_BINARY_DIR}/tests/data/ CACHE INTERNAL DOCSTRING) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0ad6b85..cb05856 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,9 +1,12 @@ cmake_policy(SET CMP0005 NEW) #========================================================= - #========================================================= # Data tests path -ADD_DEFINITIONS(-DCLITK_TEST_DATA_PATH=\"${CLITK_TEST_DATA_PATH}/\") +FIND_PATH(CLITK_TEST_DATA_PATH Lung3D.mhd) +IF(NOT ${CLITK_TEST_DATA_PATH} MATCHES "NOTFOUND$") + SET(CLITK_TEST_DATA_PATH "${CLITK_TEST_DATA_PATH}/") +ENDIF() +ADD_DEFINITIONS(-DCLITK_TEST_DATA_PATH="${CLITK_TEST_DATA_PATH}") #========================================================= #========================================================= # Google test macro