@@ -27,25 +27,23 @@ target_link_libraries(${test_target}
2727)
2828
2929if (WIN32 )
30- if (${SPARROW_IPC_BUILD_SHARED} )
31- find_package (date) # For copying DLLs
32- add_custom_command (
33- TARGET ${test_target} POST_BUILD
34- COMMAND ${CMAKE_COMMAND} -E copy
35- "$<TARGET_FILE:sparrow::sparrow>"
36- "$<TARGET_FILE_DIR:${test_target} >"
37- COMMAND ${CMAKE_COMMAND} -E copy
38- "$<TARGET_FILE:sparrow-ipc>"
39- "$<TARGET_FILE_DIR:${test_target} >"
40- COMMAND ${CMAKE_COMMAND} -E copy
41- "$<TARGET_FILE:sparrow::json_reader>"
42- "$<TARGET_FILE_DIR:${test_target} >"
43- COMMAND ${CMAKE_COMMAND} -E copy
44- "$<TARGET_FILE:date::date-tz>"
45- "$<TARGET_FILE_DIR:${test_target} >"
46- COMMENT "Copying sparrow and sparrow-ipc DLLs to executable directory"
47- )
48- endif ()
30+ find_package (date) # For copying DLLs
31+ add_custom_command (
32+ TARGET ${test_target} POST_BUILD
33+ COMMAND ${CMAKE_COMMAND} -E copy
34+ "$<TARGET_FILE:sparrow::sparrow>"
35+ "$<TARGET_FILE_DIR:${test_target} >"
36+ COMMAND ${CMAKE_COMMAND} -E copy
37+ "$<TARGET_FILE:sparrow-ipc>"
38+ "$<TARGET_FILE_DIR:${test_target} >"
39+ COMMAND ${CMAKE_COMMAND} -E copy
40+ "$<TARGET_FILE:sparrow::json_reader>"
41+ "$<TARGET_FILE_DIR:${test_target} >"
42+ COMMAND ${CMAKE_COMMAND} -E copy
43+ "$<TARGET_FILE:date::date-tz>"
44+ "$<TARGET_FILE_DIR:${test_target} >"
45+ COMMENT "Copying sparrow and sparrow-ipc DLLs to executable directory"
46+ )
4947endif ()
5048
5149target_include_directories (${test_target}
0 commit comments