21 lines
552 B
CMake
21 lines
552 B
CMake
|
@PACKAGE_INIT@
|
||
|
|
||
|
set(SENTRY_BACKEND @SENTRY_BACKEND@)
|
||
|
set(SENTRY_TRANSPORT @SENTRY_TRANSPORT@)
|
||
|
|
||
|
if(SENTRY_BACKEND STREQUAL "crashpad")
|
||
|
if(@SENTRY_CRASHPAD_SYSTEM@)
|
||
|
find_package(crashpad REQUIRED)
|
||
|
else()
|
||
|
include("${CMAKE_CURRENT_LIST_DIR}/sentry_crashpad-targets.cmake")
|
||
|
endif()
|
||
|
endif()
|
||
|
|
||
|
include("${CMAKE_CURRENT_LIST_DIR}/sentry-targets.cmake")
|
||
|
|
||
|
if(SENTRY_TRANSPORT STREQUAL "curl" AND NOT @BUILD_SHARED_LIBS@)
|
||
|
find_package(CURL REQUIRED)
|
||
|
set_property(TARGET sentry::sentry APPEND
|
||
|
PROPERTY INTERFACE_LINK_LIBRARIES ${CURL_LIBRARIES})
|
||
|
endif()
|