2022-04-02 01:21:55 +00:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
set(SENTRY_BACKEND @SENTRY_BACKEND@)
|
|
|
|
set(SENTRY_TRANSPORT @SENTRY_TRANSPORT@)
|
2024-04-30 00:11:06 +00:00
|
|
|
set(SENTRY_BUILD_SHARED_LIBS @SENTRY_BUILD_SHARED_LIBS@)
|
|
|
|
set(SENTRY_LINK_PTHREAD @SENTRY_LINK_PTHREAD@)
|
2022-04-02 01:21:55 +00:00
|
|
|
|
2024-04-30 00:11:06 +00:00
|
|
|
if(SENTRY_BACKEND STREQUAL "crashpad" AND NOT SENTRY_BUILD_SHARED_LIBS)
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/sentry_crashpad-targets.cmake")
|
|
|
|
if(NOT MSVC AND NOT SENTRY_BUILD_SHARED_LIBS)
|
|
|
|
find_package(ZLIB REQUIRED)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(SENTRY_BACKEND STREQUAL "breakpad" AND NOT SENTRY_BUILD_SHARED_LIBS)
|
|
|
|
set(SENTRY_BREAKPAD_SYSTEM @SENTRY_BREAKPAD_SYSTEM@)
|
|
|
|
if(SENTRY_BREAKPAD_SYSTEM)
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad-client)
|
2022-04-02 01:21:55 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/sentry-targets.cmake")
|
|
|
|
|
2024-04-30 00:11:06 +00:00
|
|
|
if(SENTRY_TRANSPORT STREQUAL "curl" AND (NOT @BUILD_SHARED_LIBS@ OR NOT SENTRY_BUILD_SHARED_LIBS))
|
2022-04-02 01:21:55 +00:00
|
|
|
find_package(CURL REQUIRED)
|
|
|
|
set_property(TARGET sentry::sentry APPEND
|
|
|
|
PROPERTY INTERFACE_LINK_LIBRARIES ${CURL_LIBRARIES})
|
|
|
|
endif()
|
2024-04-30 00:11:06 +00:00
|
|
|
|
|
|
|
if(SENTRY_LINK_PTHREAD AND NOT SENTRY_BUILD_SHARED_LIBS)
|
|
|
|
find_package(Threads REQUIRED)
|
|
|
|
endif()
|