We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0fd85 commit 997a7d4Copy full SHA for 997a7d4
tests/CMakeLists.txt
@@ -146,6 +146,12 @@ include(CTest)
146
147
add_executable(SelfTest ${TEST_SOURCES})
148
target_link_libraries(SelfTest PRIVATE Catch2WithMain)
149
+if (BUILD_SHARED_LIBS AND WIN32)
150
+ add_custom_command(TARGET SelfTest PRE_LINK
151
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:Catch2>
152
+ $<TARGET_FILE:Catch2WithMain> $<TARGET_FILE_DIR:SelfTest>
153
+ )
154
+endif()
155
156
if (CATCH_ENABLE_COVERAGE)
157
set(ENABLE_COVERAGE ON CACHE BOOL "Enable coverage build." FORCE)
0 commit comments