diff options
author | Jacob Schloss <jschloss@swiftengineering.com> | 2018-09-20 23:27:40 +0300 |
---|---|---|
committer | Jacob Schloss <jschloss@swiftengineering.com> | 2018-09-20 23:27:40 +0300 |
commit | ade41cdfe9d5a595d09e2485faf3f5769ec50b22 (patch) | |
tree | 65c49c956ce6df3503fa3281aec42064ab7e5986 /CMakeLists.txt | |
parent | c07409b5c353621184d57042f4759b675912fc70 (diff) |
Make resources folder for xml test relative to current source and binary directory
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 65b64cb..25e6245 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,9 +87,9 @@ if(BUILD_TESTING AND BUILD_TESTS) # Copy test resources and create test output directory
add_custom_command(TARGET xmltest POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/resources $<TARGET_FILE_DIR:xmltest>/resources
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/resources $<TARGET_FILE_DIR:xmltest>/resources
COMMAND ${CMAKE_COMMAND} -E make_directory $<TARGET_FILE_DIR:xmltest>/resources/out
- COMMENT "Configuring xmltest resources directory: ${CMAKE_BINARY_DIR}/resources"
+ COMMENT "Configuring xmltest resources directory: ${CMAKE_CURRENT_BINARY_DIR}/resources"
)
add_test(NAME xmltest COMMAND xmltest WORKING_DIRECTORY $<TARGET_FILE_DIR:xmltest>)
|