diff options
author | Jimmy Nguyen <jinguyen@9801a7949465.ant.amazon.com> | 2017-02-21 23:31:23 +0300 |
---|---|---|
committer | Jimmy Nguyen <jinguyen@9801a7949465.ant.amazon.com> | 2017-02-21 23:31:23 +0300 |
commit | 1e0b4e6b8aceaabb676adb8d1bc531bb2ff3129f (patch) | |
tree | 2b7f366c286fb8faea39db590f66d9a5c0b39046 /CMakeLists.txt | |
parent | 7f2ce0dc0e1968a1d5e9ffcc905ea85e3015c66f (diff) |
Use generator expression to specify target output directory for resources 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 9a4c0cc..dd09fe5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -98,8 +98,8 @@ endif() # 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 ${CMAKE_BINARY_DIR}/resources
- COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/resources/out
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_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"
)
|