diff options
author | Jimmy Nguyen <jinguyen@9801a7949465.ant.amazon.com> | 2017-02-21 23:00:38 +0300 |
---|---|---|
committer | Jimmy Nguyen <jinguyen@9801a7949465.ant.amazon.com> | 2017-02-21 23:00:38 +0300 |
commit | 6bf64fb149dae91946971ed39278bb315b975bef (patch) | |
tree | 571e24e9debae4b045252b6848383302b26fe41f /CMakeLists.txt | |
parent | 969b8c22343a19c0474395a0af701c8513413ed0 (diff) |
Use CMake to create resources/out directory
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a21405..9a4c0cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,9 +96,11 @@ else(BUILD_STATIC_LIBS) target_link_libraries(xmltest tinyxml2_static)
endif()
-# Copy test resources
+# 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
+ COMMENT "Configuring xmltest resources directory: ${CMAKE_BINARY_DIR}/resources"
)
install(FILES tinyxml2.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|