1 2 3 4
cpptrace provides CMake targets: find_package(cpptrace CONFIG REQUIRED) target_link_libraries(main PRIVATE cpptrace::cpptrace)