-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
99 lines (99 loc) · 2.35 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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "ninja-multi-vcpkg",
"displayName": "Ninja Multi-Config",
"description": "Configure with vcpkg toolchain and generate Ninja project files for all configurations",
"binaryDir": "${sourceDir}/builds/${presetName}",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "FILEPATH",
"value": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake"
},
"BUILD_TESTING": false,
"BUILD_SHARED_LIBS": true
}
},
{
"name": "ninja-multi-vcpkg-static",
"inherits": "ninja-multi-vcpkg",
"cacheVariables": {
"BUILD_SHARED_LIBS": false
}
},
{
"name": "ninja-vcpkg",
"binaryDir": "${sourceDir}/builds/${presetName}",
"generator": "Ninja",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"type": "FILEPATH",
"value": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake"
},
"BUILD_TESTING": false,
"BUILD_SHARED_LIBS": true
}
},
{
"name": "ninja-vcpkg-static",
"inherits": "ninja-vcpkg",
"cacheVariables": {
"BUILD_SHARED_LIBS": false
}
},
{
"name": "ninja-debug-vcpkg",
"inherits": "ninja-vcpkg",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "ninja-debug-vcpkg-static",
"inherits": "ninja-vcpkg-static",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "ninja-release-vcpkg",
"inherits": "ninja-vcpkg",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "ninja-release-vcpkg-static",
"inherits": "ninja-vcpkg-static",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "ninja-debug-vcpkg"
},
{
"name": "release",
"configurePreset": "ninja-release-vcpkg"
},
{
"name": "static-debug",
"configurePreset": "ninja-debug-vcpkg-static"
},
{
"name": "static-release",
"configurePreset": "ninja-release-vcpkg-static"
}
]
}