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)
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