Skip to content
Snippets Groups Projects
Unverified Commit 7e8e2499 authored by Lee Thomason's avatar Lee Thomason Committed by GitHub
Browse files

Merge pull request #707 from SwiftEngineering/issue_706

Issue_706: Make resources path relative to current source and binary dir
parents 25b23b88 ade41cdf
No related branches found
No related tags found
No related merge requests found
......@@ -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>)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment