Update README to include windows dll copying instructions
This commit is contained in:
parent
ccd0ea5e17
commit
a68277fc2b
@ -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).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user