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