-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakePresets.json
57 lines (57 loc) · 1.41 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
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "ninja-multi",
"displayName": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/builds/${presetName}",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"BUILD_SHARED_LIBS": true,
"BUILD_TESTING": true
}
},
{
"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_SHARED_LIBS": true,
"BUILD_TESTING": true
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "ninja-multi",
"configuration": "Debug"
},
{
"name": "release",
"configurePreset": "ninja-multi",
"configuration": "Release"
},
{
"name": "debug-vcpkg",
"configurePreset": "ninja-multi-vcpkg",
"configuration": "Debug"
},
{
"name": "release-vcpkg",
"configurePreset": "ninja-multi-vcpkg",
"configuration": "Release"
}
]
}