forked from stlab/stlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
157 lines (157 loc) · 4.74 KB
/
CMakePresets.json
File metadata and controls
157 lines (157 loc) · 4.74 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
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
{
"version": 10,
"cmakeMinimumRequired": {
"major": 3,
"minor": 28,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "base-cpp20",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "20"
}
},
{
"name": "base-cpp17",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "17"
}
},
{
"name": "base-sanitizer",
"hidden": true,
"inherits": "base-cpp20",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-fsanitize=thread -fsanitize=undefined"
}
},
{
"name": "debug-cpp20",
"description": "Debug build with C++20",
"inherits": "base-cpp20"
},
{
"name": "debug-cpp17",
"description": "Debug build with C++17",
"inherits": "base-cpp17"
},
{
"name": "debug-sanitizer",
"description": "Debug build with thread and undefined behavior sanitizers",
"inherits": "base-sanitizer"
},
{
"name": "debug-portable",
"description": "Debug build with portable task system",
"inherits": "base-cpp20",
"cacheVariables": {
"STLAB_TASK_SYSTEM": "portable"
}
},
{
"name": "debug-asan",
"description": "Debug build with address sanitizer",
"inherits": "base-cpp20",
"cacheVariables": {
"STLAB_SANITIZER": "address"
}
},
{
"name": "xcode-debug",
"description": "Debug build using Xcode",
"generator": "Xcode",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "20",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "xcode-debug-portable",
"description": "Debug build using Xcode with portable task system",
"inherits": "xcode-debug",
"cacheVariables": {
"STLAB_TASK_SYSTEM": "portable"
}
},
{
"name": "docs",
"description": "Build documentation",
"binaryDir": "${sourceDir}/build/hyde",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "20",
"BUILD_TESTING": "OFF",
"STLAB_MAIN_EXECUTOR": "none",
"STLAB_NO_STD_COROUTINES": "ON",
"STLAB_TASK_SYSTEM": "portable",
"STLAB_THREAD_SYSTEM": "pthread",
"stlab.coverage": "OFF"
}
},
{
"name": "clang-tidy",
"description": "Run clang-tidy without fixes",
"inherits": "base-cpp17",
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": "clang-tidy"
}
},
{
"name": "clang-tidy-fix",
"description": "Run clang-tidy with auto-fix",
"inherits": "clang-tidy",
"cacheVariables": {
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;--fix"
}
},
{
"name": "include-what-you-use",
"description": "Run include-what-you-use analysis",
"inherits": "base-cpp17",
"cacheVariables": {
"CMAKE_CXX_INCLUDE_WHAT_YOU_USE": "include-what-you-use;-Xiwyu;--mapping_file=/usr/local/Cellar/include-what-you-use/0.23/libexec/share/include-what-you-use/boost-all.imp"
}
}
],
"buildPresets": [
{
"name": "clang-tidy-fix",
"configurePreset": "clang-tidy-fix",
"jobs": 1
},
{
"name": "clang-tidy",
"configurePreset": "clang-tidy"
},
{
"name": "include-what-you-use",
"configurePreset": "include-what-you-use",
"jobs": 1
}
],
"testPresets": [
{
"name": "debug-sanitizer-verbose",
"description": "Run tests with sanitizers and verbose output",
"configurePreset": "debug-sanitizer",
"output": {
"verbosity": "verbose"
}
}
]
}