-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
72 lines (72 loc) · 1.67 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 23,
"patch": 0
},
"configurePresets": [
{
"name": "sibling-build-preset",
"hidden": true,
"description": "Use a sibling directory for the build based on the preset name",
"binaryDir": "${sourceDir}/../build-${sourceDirName}-${presetName}"
},
{
"name": "project-name",
"hidden": true,
"description": "Set the project name from the preset name",
"cacheVariables": {
"PROJECT_TEMPLATE_PROJECT_NAME": "Project Template ${presetName}"
}
},
{
"name": "vcpkg",
"hidden": true,
"description": "Configure the toolchain for vcpkg",
"toolchainFile": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "default",
"displayName": "Configure with default settings",
"inherits": [ "sibling-build-preset", "vcpkg", "project-name" ]
}
],
"buildPresets": [
{
"name": "default",
"displayName": "Build with default settings",
"configurePreset": "default"
}
],
"testPresets": [
{
"name": "default",
"displayName": "Test with default settings",
"configurePreset": "default",
"output": {
"outputOnFailure": true
}
}
],
"workflowPresets": [
{
"name": "default",
"displayName": "Workflow with default settings: configure, build and test",
"steps": [
{
"type": "configure",
"name": "default"
},
{
"type": "build",
"name": "default"
},
{
"type": "test",
"name": "default"
}
]
}
]
}