From a68277fc2b8ac8a503173b1e1ee169235a3a76df Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Mon, 18 Sep 2023 23:03:03 -0400 Subject: [PATCH] Update README to include windows dll copying instructions --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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).