Update README to include windows dll copying instructions

This commit is contained in:
Jeremy 2023-09-18 23:03:03 -04:00
parent ccd0ea5e17
commit a68277fc2b
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4

View File

@ -91,6 +91,15 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(cpptrace)
target_link_libraries(your_target cpptrace)
# On windows copy cpptrace.dll to the same directory as the executable for your_target
if(WIN32)
add_custom_command(
TARGET your_target POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:cpptrace> $<TARGET_FILE_DIR:your_target>
)
endif()
```
On windows and macos some extra work is required, see [below](#platform-logistics).