Use CMake to create resources/out directory

This commit is contained in:
Jimmy Nguyen
2017-02-21 12:00:38 -08:00
parent 969b8c2234
commit 6bf64fb149
2 changed files with 3 additions and 18 deletions

View File

@@ -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})