diff --git a/README.md b/README.md index a6991fb..e2d84b9 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,15 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(cpptrace) target_link_libraries(your_target cpptrace) + +if(WIN32) # Copy the .dll on windows + add_custom_command( + TARGET your_target POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + $ + $ + ) +endif() ``` It's as easy as that. Cpptrace will automatically configure itself for your system.