]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/crashpad/crashpadConfig.cmake.in
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / crashpad / crashpadConfig.cmake.in
CommitLineData
1e59de90
TL
1# Compute the installation prefix relative to this file.
2get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
3get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
4get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
5if(_IMPORT_PREFIX STREQUAL "/")
6 set(_IMPORT_PREFIX "")
7endif()
8
9add_library(crashpad INTERFACE)
10add_library(crashpad::crashpad ALIAS crashpad)
11
12set(CRASHPAD_LIBRARIES client util base)
13
14if(WIN32)
15 target_compile_definitions(crashpad INTERFACE NOMINMAX)
16elseif(APPLE)
17 list(APPEND CRASHPAD_LIBRARIES ApplicationServices
18 CoreFoundation Foundation IOKit Security bsm)
19endif()
20
21foreach(LIB_NAME ${CRASHPAD_LIBRARIES})
22 find_library(_LIB ${LIB_NAME})
23 target_link_libraries(crashpad INTERFACE ${_LIB})
24 unset(_LIB CACHE)
25endforeach()
26
27find_package(ZLIB REQUIRED)
28target_link_libraries(crashpad INTERFACE ZLIB::ZLIB)
29
30target_include_directories(crashpad
31 INTERFACE ${_IMPORT_PREFIX}/include/crashpad)