-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
93 lines (93 loc) · 3.09 KB
/
Copy pathCMakePresets.json
File metadata and controls
93 lines (93 loc) · 3.09 KB
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
{
"version": 8,
"configurePresets": [
{
"name": "native-gcc",
"displayName": "Native GCC Compiler",
"description": "First available GCC compiler",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/install/${presetName}",
"cacheVariables": {
"CMAKE_CONFIGURATION_TYPES": "Release;Debug",
"CMAKE_CROSS_CONFIGS": "all",
"CMAKE_DEBUG_POSTFIX": "-debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_SCAN_FOR_MODULES": "OFF",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_C_COMPILER": "gcc"
},
"environment": {
"CFLAGS": "-Wall -Wextra -Wpedantic -Wunused-parameter -Winit-self -Wcast-align -Wconversion -Wnull-dereference -Wduplicated-cond -Wsign-conversion -Wlogical-op",
"CXXFLAGS": "-Wall -Wextra"
}
}
],
"buildPresets": [
{
"name": "native-gcc-all-debug",
"displayName": "all [Debug]",
"description": "Build all targets in Debug configuration",
"configurePreset": "native-gcc",
"configuration": "Debug"
},
{
"name": "native-gcc-all-release",
"displayName": "all [Release]",
"description": "Build all targets in Release configuration",
"configurePreset": "native-gcc",
"configuration": "Release"
},
{
"name": "native-gcc-install",
"displayName": "Install [Debug + Release]",
"description": "Install all targets (Release + Debug)",
"configurePreset": "native-gcc",
"targets": [
"install:Release",
"install:Debug"
]
}
],
"testPresets": [
{
"name": "native-gcc",
"displayName": "Run Tests [Debug]",
"description": "Run all tests in Debug configuration",
"configurePreset": "native-gcc",
"configuration": "Debug",
"output": {
"outputOnFailure": true
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
}
],
"workflowPresets": [
{
"name": "native-gcc",
"displayName": "Native GCC Compiler Workflow",
"description": "Configure, Build all [Debug], Run Tests, Install",
"steps": [
{
"type": "configure",
"name": "native-gcc"
},
{
"type": "build",
"name": "native-gcc-all-debug"
},
{
"type": "test",
"name": "native-gcc"
},
{
"type": "build",
"name": "native-gcc-install"
}
]
}
]
}