File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -435,6 +435,8 @@ FodyWeavers.xsd
435
435
# JetBrains Rider
436
436
* .sln.iml
437
437
438
+ CMakeSettings.json
439
+
438
440
# ##############################################################################
439
441
# C++
440
442
# ##############################################################################
Original file line number Diff line number Diff line change @@ -9,5 +9,14 @@ target_include_directories(ipctk PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src")
9
9
10
10
target_link_libraries (ipctk PRIVATE ipc::toolkit)
11
11
12
+ if (WIN32 )
13
+ # Copy DLLs to the output directory
14
+ add_custom_command (
15
+ TARGET ipctk POST_BUILD
16
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_RUNTIME_DLLS:ipctk> $<TARGET_FILE_DIR:ipctk>
17
+ COMMAND_EXPAND_LISTS
18
+ )
19
+ endif ()
20
+
12
21
# Extra warnings
13
22
# target_link_libraries(ipctk PRIVATE IPCToolkit::warnings)
Original file line number Diff line number Diff line change @@ -73,6 +73,15 @@ target_link_libraries(ipc_toolkit_tests PRIVATE ipc::toolkit::warnings)
73
73
74
74
target_compile_definitions (ipc_toolkit_tests PUBLIC CATCH_CONFIG_ENABLE_BENCHMARKING)
75
75
76
+ if (WIN32 )
77
+ # Copy DLLs to the output directory
78
+ add_custom_command (
79
+ TARGET ipc_toolkit_tests POST_BUILD
80
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_RUNTIME_DLLS:ipc_toolkit_tests> $<TARGET_FILE_DIR:ipc_toolkit_tests>
81
+ COMMAND_EXPAND_LISTS
82
+ )
83
+ endif ()
84
+
76
85
################################################################################
77
86
# Register tests
78
87
################################################################################
You can’t perform that action at this time.
0 commit comments