This repository has been archived by the owner on Jun 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
94 lines (94 loc) · 2.73 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
{
"version": 5,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "ninja-multi-vcpkg",
"displayName": "Ninja Multi-Config Configure Settings",
"description": "Configure with vcpkg toolchain",
"binaryDir": "${sourceDir}/builds/${presetName}",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "FILEPATH",
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
"CMAKE_INSTALL_PREFIX": {
"type": "FILEPATH",
"value": "${sourceDir}/install"
},
"USE_64BIT_BUILD": true
}
},
{
"name": "ninja-msvc-vcpkg",
"displayName": "Ninja MSVC VCPKG",
"inherits": "ninja-multi-vcpkg",
"description": "Build using Ninja generator with MSVC and VCPKG",
"generator": "Ninja",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "ninja-linux-vcpkg",
"displayName": "Ninja VCPKG on Linux",
"inherits": "ninja-multi-vcpkg",
"description": "Build using Ninja generator VCPKG on Linux",
"generator": "Ninja",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-linux"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
}
],
"buildPresets": [
{
"name": "ninja-msvc-vcpkg-debug",
"configurePreset": "ninja-msvc-vcpkg",
"displayName": "Build ninja-msvc-vcpkg (Debug)",
"description": "Build ninja-msvc-vcpkg (Debug) Configurations",
"targets": "install",
"configuration": "Debug"
},
{
"name": "ninja-linux-vcpkg-debug",
"configurePreset": "ninja-linux-vcpkg",
"displayName": "Build ninja-linux-vcpkg (Debug)",
"description": "Build ninja-linux-vcpkg (Debug) Configurations",
"targets": "install",
"configuration": "Debug"
},
{
"name": "ninja-msvc-vcpkg-release",
"configurePreset": "ninja-msvc-vcpkg",
"displayName": "Build ninja-msvc-vcpkg (Release)",
"description": "Build ninja-msvc-vcpkg Configurations",
"targets": "install",
"configuration": "Release"
},
{
"name": "ninja-linux-vcpkg-release",
"configurePreset": "ninja-linux-vcpkg",
"displayName": "Build ninja-linux-vcpkg (Release)",
"description": "Build ninja-linux-vcpkg Configurations",
"targets": "install",
"configuration": "Release"
}
]
}