From be5e0dd226a29d1d45f94d02bb63c64defbe33fd Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sat, 7 Oct 2023 21:16:07 -0400 Subject: Add findsentry.cmake configuration --- cmake/Findsentry.cmake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cmake/Findsentry.cmake (limited to 'cmake/Findsentry.cmake') diff --git a/cmake/Findsentry.cmake b/cmake/Findsentry.cmake new file mode 100644 index 0000000..3c2b225 --- /dev/null +++ b/cmake/Findsentry.cmake @@ -0,0 +1,14 @@ +include(FindPackageHandleStandardArgs) + +find_library(SENTRY_LIBRARY NAMES sentry) + +find_package_handle_standard_args(sentry REQUIRED_VARS SENTRY_LIBRARY) + +if (SENTRY_FOUND) + mark_as_advanced(SENTRY_LIBRARY) +endif() + +if(SENTRY_FOUND AND NOT TARGET sentry::sentry) + add_library(sentry::sentry IMPORTED UNKNOWN) + set_property(TARGET sentry::sentry PROPERTY IMPORTED_LOCATION ${SENTRY_LIBRARY}) +endif() \ No newline at end of file -- cgit v1.2.3