Fix cmake integration tests

This commit is contained in:
Jeremy 2023-09-09 18:09:07 -04:00
parent cf0bf6e02d
commit 57031e4c6b
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 18 additions and 0 deletions

View File

@ -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
$<TARGET_FILE:cpptrace>
$<TARGET_FILE_DIR:main>
)
endif()

View File

@ -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
$<TARGET_FILE:cpptrace>
$<TARGET_FILE_DIR:main>
)
endif()