]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/chromium-base/chromium-baseConfig.cmake.in
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / chromium-base / chromium-baseConfig.cmake.in
CommitLineData
1e59de90
TL
1if(TARGET chromium-base)
2 return()
3endif()
4
5set(DEFINITIONS_DBG @DEFINITIONS_DBG@)
6set(DEFINITIONS_REL @DEFINITIONS_DBG@)
7
8# Compute the installation prefix relative to this file.
9get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
10get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
11get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
12if(_IMPORT_PREFIX STREQUAL "/")
13 set(_IMPORT_PREFIX "")
14endif()
15
16add_library(chromium-base INTERFACE IMPORTED GLOBAL)
17add_library(chromium-base::chromium-base ALIAS chromium-base)
18
19set(LIBRARIES_ chromium_base chromium_base_static dynamic_annotations double_conversion)
20
21if(WIN32)
22 list(APPEND LIBRARIES_
23 cfgmgr32
24 powrprof
25 propsys
26 setupapi
27 userenv
28 wbemuuid
29 winmm
30 advapi32
31 comdlg32
32 dbghelp
33 dnsapi
34 gdi32
35 msimg32
36 odbc32
37 odbccp32
38 oleaut32
39 shell32
40 shlwapi
41 user32
42 usp10
43 uuid
44 version
45 wininet
46 winspool
47 ws2_32
48 delayimp
49 kernel32
50 ole32)
51elseif(APPLE)
52 list(APPEND LIBRARIES_
53 ApplicationServices
54 AppKit
55 CoreFoundation
56 IOKit
57 OpenDirectory
58 Security
59 bsm
60 pmenergy
61 pmsample)
62endif()
63
64foreach(LIB_NAME ${LIBRARIES_})
65 find_library(_LIB NAMES ${LIB_NAME} ${LIB_NAME}.dll)
66 target_link_libraries(chromium-base INTERFACE ${_LIB})
67 unset(_LIB CACHE)
68endforeach()
69
70if(UNIX AND NOT APPLE)
71 target_link_libraries(chromium-base INTERFACE -ldl -latomic -lpthread)
72endif()
73
74target_include_directories(chromium-base
75 INTERFACE ${_IMPORT_PREFIX}/include/chromium-base)
76
77target_compile_definitions(chromium-base INTERFACE
78 $<$<CONFIG:Debug>:${DEFINITIONS_DBG}>
79 $<$<CONFIG:Release>:${DEFINITIONS_REL}>)
80
81target_compile_features(chromium-base INTERFACE cxx_std_14)