You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
537 B
15 lines
537 B
12 years ago
|
include(ExternalData)
|
||
|
set(ExternalData_URL_TEMPLATES
|
||
|
"file:///${CMAKE_CURRENT_SOURCE_DIR}/%(algo)/%(hash)"
|
||
|
)
|
||
|
set(ExternalData_BINARY_ROOT ${CMAKE_CURRENT_BINARY_DIR}/ExternalData)
|
||
|
set(input Data.txt)
|
||
|
set(output ${CMAKE_CURRENT_BINARY_DIR}/ExternalData/Data.txt)
|
||
|
ExternalData_Expand_Arguments(Data args DATA{${input}})
|
||
|
if("x${args}" STREQUAL "x${output}")
|
||
|
message(STATUS "Data reference correctly transformed!")
|
||
|
else()
|
||
|
message(FATAL_ERROR "Data reference transformed to:\n ${args}\n"
|
||
|
"but we expected:\n ${output}")
|
||
|
endif()
|