aboutsummaryrefslogblamecommitdiff
path: root/cmake/Findsentry.cmake
blob: 3c2b225564fd4502b025b2afbbd0444ec11e4748 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()