diff --git a/test/add_subdirectory-integration/CMakeLists.txt b/test/add_subdirectory-integration/CMakeLists.txt index 77b1e86..3a05977 100644 --- a/test/add_subdirectory-integration/CMakeLists.txt +++ b/test/add_subdirectory-integration/CMakeLists.txt @@ -6,3 +6,12 @@ add_executable(main main.cpp) add_subdirectory(cpptrace) target_link_libraries(main cpptrace) + +if(WIN32) + add_custom_command( + TARGET main POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + $ + $ + ) +endif() diff --git a/test/fetchcontent-integration/CMakeLists.txt b/test/fetchcontent-integration/CMakeLists.txt index 817cc85..e4deb90 100644 --- a/test/fetchcontent-integration/CMakeLists.txt +++ b/test/fetchcontent-integration/CMakeLists.txt @@ -14,3 +14,12 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(cpptrace) target_link_libraries(main cpptrace) + +if(WIN32) + add_custom_command( + TARGET main POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + $ + $ + ) +endif()