mirror of https://github.com/AxioDL/tinyxml2.git
Use generator expression to specify target output directory for resources directory
This commit is contained in:
parent
7f2ce0dc0e
commit
1e0b4e6b8a
|
@ -98,8 +98,8 @@ endif()
|
||||||
|
|
||||||
# Copy test resources and create test output directory
|
# Copy test resources and create test output directory
|
||||||
add_custom_command(TARGET xmltest POST_BUILD
|
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 copy_directory ${CMAKE_SOURCE_DIR}/resources $<TARGET_FILE_DIR:xmltest>/resources
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/resources/out
|
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_BINARY_DIR}/resources"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue