File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,15 @@ INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/gtest")
8
8
ADD_EXECUTABLE (${target} ${srcs} ${hdrs} )
9
9
TARGET_LINK_LIBRARIES (${target} gtest ${PRACTICE2_LIBRARY} )
10
10
11
+ #add_custom_command(
12
+ # TARGET ${PRACTICE2_TESTS}
13
+ # POST_BUILD
14
+ # COMMAND ln -fns "${CMAKE_SOURCE_DIR}/testdata" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE}/testdata"
15
+ # COMMENT "Adding a symbolic link to testdata"
16
+ #)
17
+
11
18
add_custom_command (
12
19
TARGET ${PRACTICE2_TESTS}
13
- POST_BUILD
14
- COMMAND ln -fns "${CMAKE_SOURCE_DIR} /testdata" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE} /testdata"
15
- COMMENT "Adding a symbolic link to testdata"
20
+ POST_BUILD
21
+ COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR} /testdata" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE} /testdata"
16
22
)
You can’t perform that action at this time.
0 commit comments