Fix cmake integration tests
This commit is contained in:
parent
cf0bf6e02d
commit
57031e4c6b
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user