-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakePresets.json
202 lines (202 loc) · 7.19 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "multi-config",
"hidden": true,
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CTEST_ARGUMENTS": "--output-on-failure",
"CMAKE_CONFIGURATION_TYPES": "Debug;Release"
}
},
{
"name": "msvc",
"inherits": "multi-config",
"displayName": "Visual Studio 2019/2022",
"description": "Recommended configuration for windows builds",
"installDir": "${sourceDir}/artifacts/msvc",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "/EHsc /permissive- /Zc:__cplusplus /Zc:externConstexpr /Zc:inline /Zc:preprocessor /Zc:throwingNew /diagnostics:caret /experimental:external /external:anglebrackets /external:W0 /wd4068 /D_ENABLE_EXTENDED_ALIGNED_STORAGE"
}
},
{
"name": "clang",
"inherits": "multi-config",
"displayName": "Clang",
"description": "Recommended configuration for Clang with libc++",
"installDir": "${sourceDir}/artifacts/clang",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_EXTENSIONS": false,
"CMAKE_CXX_FLAGS": "-stdlib=libc++ -fsized-deallocation -Wall -Wextra -Werror --pedantic -ftemplate-backtrace-limit=0 -Wno-gnu-zero-variadic-macro-arguments"
}
},
{
"name": "clang-libstdcpp",
"inherits": "multi-config",
"displayName": "Clang",
"description": "Recommended configuration for Clang with libstdcpp",
"installDir": "${sourceDir}/artifacts/clang-libstdcpp",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_EXTENSIONS": false,
"CMAKE_CXX_FLAGS": "-stdlib=libstdc++ -fsized-deallocation -Wall -Wextra -Werror --pedantic -ftemplate-backtrace-limit=0 -Wno-gnu-zero-variadic-macro-arguments"
}
},
{
"name": "clang-analyze",
"inherits": "multi-config",
"displayName": "Clang Static Analyser",
"description": "Configuration for Clang based static analyser",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_EXTENSIONS": false,
"CMAKE_CXX_FLAGS": "--analyze -stdlib=libc++ -fsized-deallocation -Wno-unused-command-line-argument"
}
},
{
"name": "gcc",
"inherits": "multi-config",
"displayName": "G++",
"description": "Recommended configuration for GNU GCC",
"installDir": "${sourceDir}/artifacts/gcc",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-fsized-deallocation -Wall -Wextra -Werror --pedantic -ftemplate-backtrace-limit=0 -Wno-maybe-uninitialized -Wno-stringop-overflow -Wno-array-bounds -Wno-restrict"
}
}
],
"buildPresets": [
{
"name": "msvc-debug",
"displayName": "Visual Studio 2019/2022 Debug Build",
"configurePreset": "msvc",
"configuration": "Debug"
},
{
"name": "msvc-release",
"displayName": "Visual Studio 2019/2022 Release Build",
"configurePreset": "msvc",
"configuration": "Release"
},
{
"name": "clang-debug",
"displayName": "Clang Debug Build",
"configurePreset": "clang",
"configuration": "Debug"
},
{
"name": "clang-release",
"displayName": "Clang Release Build",
"configurePreset": "clang",
"configuration": "Release"
},
{
"name": "clang-libstdcpp-debug",
"displayName": "Clang libstdc++ Debug Build",
"configurePreset": "clang-libstdcpp",
"configuration": "Debug"
},
{
"name": "clang-libstdcpp-release",
"displayName": "Clang libstdc++ Release Build",
"configurePreset": "clang-libstdcpp",
"configuration": "Release"
},
{
"name": "gcc-debug",
"displayName": "G++ Debug Build",
"configurePreset": "gcc",
"configuration": "Debug"
},
{
"name": "gcc-release",
"displayName": "G++ Release Build",
"configurePreset": "gcc",
"configuration": "Release"
},
{
"name": "clang-analyze-debug",
"displayName": "Clang Analyse Debug Build",
"configurePreset": "clang-analyze",
"configuration": "Debug"
}
],
"testPresets": [
{
"name": "test-base",
"hidden": true,
"output": {
"outputOnFailure": true,
"debug": false
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": true
}
},
{
"name": "test-msvc-debug",
"inherits": "test-base",
"displayName": "Test Visual Studio 2019/2022 Debug Build",
"configurePreset": "msvc",
"configuration": "Debug"
},
{
"name": "test-msvc-release",
"inherits": "test-base",
"displayName": "Test Visual Studio 2019/2022 Release Build",
"configurePreset": "msvc",
"configuration": "Release"
},
{
"name": "test-clang-debug",
"inherits": "test-base",
"displayName": "Test Clang Debug Build",
"configurePreset": "clang",
"configuration": "Debug"
},
{
"name": "test-clang-release",
"inherits": "test-base",
"displayName": "Test Clang Release Build",
"configurePreset": "clang",
"configuration": "Release"
},
{
"name": "test-clang-libstdcpp-debug",
"inherits": "test-base",
"displayName": "Test Clang libstdc++ Debug Build",
"configurePreset": "clang-libstdcpp",
"configuration": "Debug"
},
{
"name": "test-clang-libstdcpp-release",
"inherits": "test-base",
"displayName": "Test Clang libstdc++ Release Build",
"configurePreset": "clang-libstdcpp",
"configuration": "Release"
},
{
"name": "test-gcc-debug",
"inherits": "test-base",
"displayName": "Test GCC Debug Build",
"configurePreset": "gcc",
"configuration": "Debug"
},
{
"name": "test-gcc-release",
"inherits": "test-base",
"displayName": "Test GCC Release Build",
"configurePreset": "gcc",
"configuration": "Release"
}
]
}