-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakePresets.json
143 lines (143 loc) · 3.75 KB
/
CMakePresets.json
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"version": 8,
"configurePresets": [
{
"name": "ninja",
"displayName": "Ninja",
"description": "Sets Ninja generator, build and install directory",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"VCPKG_MANIFEST_FEATURES": "tests"
}
},
{
"name": "macos",
"description": "This macos build is only available on macOS",
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"cacheVariables": {
"CMAKE_OSX_ARCHITECTURES": "arm64",
"CMAKE_OSX_DEPLOYMENT_TARGET": "12.0",
"CMAKE_FIND_ROOT_PATH": "$env{DEST};/opt/homebrew",
"FRAMEWORK_DESTINATION": "$env{DEST}/lib"
},
"installDir": "$env{DEST}"
},
{
"name": "mobile",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"generator": "Ninja",
"environment": {
"DEST_SUFFIX": ".${presetName}"
},
"cacheVariables": {
"CMAKE_DISABLE_FIND_PACKAGE_Boost": "YES",
"CMAKE_DISABLE_FIND_PACKAGE_Doxygen": "YES",
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "ios",
"hidden": true,
"inherits": ["mobile", "macos"],
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "iOS",
"CMAKE_OSX_SYSROOT": "${presetName}",
"CMAKE_OSX_DEPLOYMENT_TARGET": "15.0",
"CMAKE_DISABLE_FIND_PACKAGE_SWIG": "YES"
}
},
{
"name": "iphoneos",
"inherits": "ios",
"description": "This iphoneos build is only available on macOS",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-ios"
}
},
{
"name": "iphonesimulator",
"inherits": "ios",
"description": "This iphonesimulator build is only available on macOS",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-ios-simulator"
}
},
{
"name": "android",
"hidden": true,
"inherits": "mobile",
"cacheVariables": {
"CMAKE_SYSTEM_NAME": "Android",
"CMAKE_SYSTEM_VERSION": "30",
"BUILD_SHARED_LIBS": "NO"
}
},
{
"name": "androidarm",
"inherits": "android",
"description": "androidarm build",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "armeabi-v7a",
"VCPKG_TARGET_TRIPLET": "arm-neon-android"
}
},
{
"name": "androidarm64",
"inherits": "android",
"description": "androidarm64 build",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "arm64-v8a",
"VCPKG_TARGET_TRIPLET": "arm64-android"
}
},
{
"name": "androidx86_64",
"inherits": "android",
"description": "androidx86_64 build",
"cacheVariables": {
"CMAKE_ANDROID_ARCH_ABI": "x86_64",
"VCPKG_TARGET_TRIPLET": "x64-android"
}
}
],
"buildPresets":
[
{
"name": "macos",
"configurePreset": "macos"
},
{
"name": "iphoneos",
"configurePreset": "iphoneos"
},
{
"name": "iphonesimulator",
"configurePreset": "iphonesimulator"
},
{
"name": "androidarm",
"configurePreset": "androidarm"
},
{
"name": "androidarm64",
"configurePreset": "androidarm64"
},
{
"name": "androidx86_64",
"configurePreset": "androidx86_64"
}
]
}