-
Notifications
You must be signed in to change notification settings - Fork 2
/
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": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "ninja-base",
"hidden": true,
"binaryDir": "${sourceDir}/cmake-build-${presetName}",
"generator": "Ninja Multi-Config",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": {
"type": "BOOL",
"value": true
}
}
},
{
"name": "desktop",
"description": "Configure with hosted system toolchain",
"inherits": ["ninja-base"]
},
{
"name": "avr-gcc",
"description": "Configure with avr-gcc toolchain",
"toolchainFile": "${sourceDir}/cmake/toolchain/atmega328p.cmake",
"inherits": ["ninja-base"]
}
],
"buildPresets": [
{
"name": "desktop",
"description": "Build using ninja and hosted system toolchain",
"configurePreset": "desktop",
"configuration": "Release"
},
{
"name": "avr-gcc",
"description": "Build using ninja and avr-gcc toolchain",
"configurePreset": "avr-gcc",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "desktop",
"description": "Test using ninja and system toolchain",
"configurePreset": "desktop",
"configuration": "Release",
"output": { "outputOnFailure": true },
"execution": { "noTestsAction": "error", "stopOnFailure": true }
}
]
}