From 278bf98285ad8ed820e52f1fa3c9c37873040c9d Mon Sep 17 00:00:00 2001 From: mpech Date: Fri, 22 Jul 2011 17:05:17 +0200 Subject: [PATCH] The data repository must be cloned and pulled by the user --- CTestConfig.cmake | 3 --- tests/CMakeLists.txt | 7 +++++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.47.1