-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakePresets.json
170 lines (170 loc) · 4.77 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "debug",
"displayName": "Debug (cc, C++20, java)",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "20",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/debug",
"JAU_CMAKE_FIX_INSTALL_PREFIX": "ON",
"TRY_JAVA": "ON",
"USE_LIBCURL": "OFF",
"USE_LIBUNWIND": "ON",
"BUILDEXAMPLES": "ON",
"BUILD_TESTING": "ON",
"BUILD_TRIAL": "ON",
"TEST_WITH_SUDO": "OFF"
}
},
{
"name": "debug-clang",
"inherits": "debug",
"displayName": "Debug (clang, clang-tidy, C++20, java)",
"binaryDir": "${sourceDir}/build/debug-clang",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/debug-clang",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/debug-clang"
}
},
{
"name": "debug-gcc",
"inherits": "debug",
"displayName": "Debug (gcc, C++20, java)",
"binaryDir": "${sourceDir}/build/debug-gcc",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/debug-gcc",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "release",
"inherits": "debug",
"displayName": "Release (cc, C++20, java)",
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/release",
"JAU_CMAKE_FIX_INSTALL_PREFIX": "ON",
"USE_LIBUNWIND": "OFF"
}
},
{
"name": "release-clang",
"inherits": "release",
"displayName": "Release (clang, clang-tidy, C++20, java)",
"binaryDir": "${sourceDir}/build/release-clang",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/release-clang",
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/release-clang"
}
},
{
"name": "release-gcc",
"inherits": "release",
"displayName": "Release (gcc, C++20, java)",
"binaryDir": "${sourceDir}/build/release-gcc",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/release-gcc",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "default",
"inherits": "debug-clang",
"displayName": "Default (debug-clang)",
"binaryDir": "${sourceDir}/build/default",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/dist/default",
"CMAKE_CXX_CLANG_TIDY": "clang-tidy;-p;${sourceDir}/build/default"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "debug"
},
{
"name": "debug-clang",
"configurePreset": "debug-clang"
},
{
"name": "debug-gcc",
"configurePreset": "debug-gcc"
},
{
"name": "release",
"configurePreset": "release"
},
{
"name": "release-clang",
"configurePreset": "release-clang"
},
{
"name": "release-gcc",
"configurePreset": "release-gcc"
},
{
"name": "default",
"configurePreset": "default"
}
],
"testPresets": [
{
"name": "debug",
"configurePreset": "debug",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "debug-clang",
"configurePreset": "debug-clang",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "debug-gcc",
"configurePreset": "debug-gcc",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "release",
"configurePreset": "release",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "release-clang",
"configurePreset": "release-clang",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "release-gcc",
"configurePreset": "release-gcc",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
},
{
"name": "default",
"configurePreset": "default",
"output": {"outputOnFailure": true},
"execution": {"noTestsAction": "error", "stopOnFailure": true}
}
]
}