forked from chkboom/mx-datetime
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCMakePresets.json
More file actions
116 lines (116 loc) · 2.58 KB
/
CMakePresets.json
File metadata and controls
116 lines (116 loc) · 2.58 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"version": 6,
"configurePresets": [
{
"name": "default",
"displayName": "Main Configuration",
"description": "Recommended build using Ninja Multi-Config generator",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/_build_"
},
{
"name": "IDE",
"displayName": "IDE Configuration",
"description": "For IDEs like Qt Creator to avoid conflicting builds when loading the project",
"inherits": "default",
"binaryDir": "${sourceDir}/_build_/${presetName}"
},
{
"name": "clang",
"displayName": "Clang configuration",
"description": "Compile using clang",
"inherits": "default",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "gcc",
"displayName": "GCC configuration",
"description": "Compile using gcc",
"inherits": "default",
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "clazy",
"displayName": "Check with clazy",
"inherits": "clang",
"environment": {
"CLAZY_CHECKS": "level0,level1,level2,qt6-deprecated-api-fixes,qt6-header-fixes,qt6-qhash-signature,qt6-qlatin1stringchar-to-u,qt6-fwd-fixes,missing-qobject-macro,$penv{CLAZY_CHECKS}",
"CLAZY_IGNORE_DIRS": "/usr/include/*"
},
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clazy"
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
},
{
"name": "clang",
"configurePreset": "clang"
},
{
"name": "gcc",
"configurePreset": "gcc"
},
{
"name": "clazy",
"configurePreset": "clazy"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
}
],
"workflowPresets": [
{
"name": "default",
"steps": [
{ "type": "configure", "name": "default" },
{ "type": "build", "name": "default" }
]
},
{
"name": "clang",
"steps": [
{ "type": "configure", "name": "clang" },
{ "type": "build", "name": "clang" }
]
},
{
"name": "gcc",
"steps": [
{ "type": "configure", "name": "gcc" },
{ "type": "build", "name": "gcc" }
]
},
{
"name": "clazy",
"steps": [
{ "type": "configure", "name": "clazy" },
{ "type": "build", "name": "clazy" }
]
}
],
"vendor": {
"qt.io/QtCreator/1.0": {
"AskBeforePresetsReload": false,
"AskReConfigureInitialParams": false,
"AutorunCMake": true,
"PackageManagerAutoSetup": false,
"ShowAdvancedOptionsByDefault": true,
"ShowSourceSubFolders": false,
"UseJunctionsForSourceAndBuildDirectories": false
}
}
}