-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakePresets.json
92 lines (92 loc) · 2.26 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23
},
"configurePresets": [
{
"name": "base-win64",
"hidden": false,
"inherits": [ "base" ],
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static"
}
},
{
"name": "base",
"hidden": false,
"generator": "Ninja",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"CMAKE_C_EXTENSIONS": "ON",
"CMAKE_C_STANDARD": "99",
"CMAKE_C_STANDARD_REQUIRED": "ON",
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "11",
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "ci",
"hidden": true,
"binaryDir": "${sourceDir}/build",
"inherits": [
"base"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "ci-macos-x64",
"inherits": [ "ci" ]
},
{
"name": "ci-macos-arm64",
"inherits": [ "ci" ],
"cacheVariables": {
"VCPKG_TARGET_ARCHITECTURE": "arm64",
"VCPKG_TARGET_TRIPLET": "arm64-osx",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/deps/ziti-sdk-c/toolchains/macOS-arm64.cmake"
}
},
{
"name": "ci-linux-x64",
"inherits": [ "ci" ]
},
{
"name": "ci-linux-arm64",
"inherits": "ci-linux-x64",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-linux",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/deps/ziti-sdk-c/toolchains/Linux-arm64.cmake"
}
},
{
"name": "ci-linux-arm",
"inherits": "ci-linux-x64",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm-linux",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/deps/ziti-sdk-c/toolchains/Linux-arm.cmake"
}
},
{
"name": "ci-windows-x64",
"inherits": [ "ci", "base-win64"]
},
{
"name": "ci-windows-arm64",
"inherits": [ "ci-windows-x64" ],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "arm64-windows-static-md"
}
}
]
}