diff --git a/README.md b/README.md index ddf9b10..12cb360 100644 --- a/README.md +++ b/README.md @@ -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 + $ $ + ) +endif() ``` On windows and macos some extra work is required, see [below](#platform-logistics).