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