| 1 |
set(input ../Data.txt) |
| 2 |
set(output ${CMAKE_BINARY_DIR}/Data.txt) |
| 3 |
ExternalData_Expand_Arguments(Data args DATA{${input}}) |
| 4 |
if("x${args}" STREQUAL "x${output}") |
| 5 |
message(STATUS "Data reference correctly transformed in parent dir 1!") |
| 6 |
else() |
| 7 |
message(FATAL_ERROR "Data reference transformed to:\n ${args}\n" |
| 8 |
"but we expected:\n ${output}") |
| 9 |
endif() |
| 10 |
|
| 11 |
set(input ${CMAKE_CURRENT_SOURCE_DIR}/../Data.txt) |
| 12 |
set(output ${CMAKE_BINARY_DIR}/Data.txt) |
| 13 |
ExternalData_Expand_Arguments(Data args DATA{${input}}) |
| 14 |
if("x${args}" STREQUAL "x${output}") |
| 15 |
message(STATUS "Data reference correctly transformed in parent dir 2!") |
| 16 |
else() |
| 17 |
message(FATAL_ERROR "Data reference transformed to:\n ${args}\n" |
| 18 |
"but we expected:\n ${output}") |
| 19 |
endif() |
| 20 |
|
| 21 |
set(input Data.txt) |
| 22 |
set(output ${CMAKE_CURRENT_BINARY_DIR}/Data.txt) |
| 23 |
ExternalData_Expand_Arguments(Data args DATA{${input}}) |
| 24 |
if("x${args}" STREQUAL "x${output}") |
| 25 |
message(STATUS "Data reference correctly transformed in current dir!") |
| 26 |
else() |
| 27 |
message(FATAL_ERROR "Data reference transformed to:\n ${args}\n" |
| 28 |
"but we expected:\n ${output}") |
| 29 |
endif() |