-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
183 lines (183 loc) · 4.9 KB
/
CMakePresets.json
File metadata and controls
183 lines (183 loc) · 4.9 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
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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"description": "Base configuration settings for Beetle.",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"BEETLE_ENABLE_ASSERTS": "ON",
"BEETLE_BUILD_DOCS": "OFF",
"BEETLE_BUILD_TESTS": "OFF",
"BEETLE_BUILD_EXAMPLES": "OFF",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "x64",
"hidden": true,
"description": "Base x64 configuration settings for Beetle.",
"inherits": "base",
"architecture": {
"value": "x64",
"strategy": "set"
}
},
{
"name": "x86",
"hidden": true,
"description": "Base x86 configuration settings for Beetle.",
"inherits": "base",
"architecture": {
"value": "x86",
"strategy": "set"
}
},
{
"name": "linux-base",
"hidden": true,
"description": "This build is only available on Linux.",
"inherits": "base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "windows-base",
"hidden": true,
"description": "This build is only available on Windows.",
"inherits": "base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "gcc-base",
"hidden": true,
"description": "Sets GCC as the compiler.",
"inherits": "base",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "clang-base",
"hidden": true,
"description": "Sets Clang as the compiler.",
"inherits": "base",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "msvc-base",
"hidden": true,
"description": "Sets MSVC as the compiler.",
"inherits": "base",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "debug",
"displayName": "Debug Configuration",
"description": "Debug configuration for Beetle.",
"inherits": "clang-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BEETLE_BUILD_TESTS": "ON"
}
},
{
"name": "release",
"displayName": "Release Configuration",
"description": "Release configuration for Beetle.",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"BEETLE_ENABLE_ASSERTS": "OFF",
"BEETLE_BUILD_DOCS": "ON",
"BEETLE_BUILD_TESTS": "ON",
"BEETLE_BUILD_EXAMPLES": "ON"
}
},
{
"name": "linux-debug",
"displayName": "Linux Debug Configuration",
"description": "Linux debug configuration for Beetle.",
"inherits": ["debug", "linux-base"]
},
{
"name": "linux-release",
"displayName": "Linux Release Configuration",
"description": "Linux release configuration for Beetle.",
"inherits": ["release", "linux-base"]
},
{
"name": "linux-x64-debug",
"displayName": "Linux x64 Debug Configuration",
"description": "Linux x64 debug configuration for Beetle.",
"inherits": ["linux-debug", "x64"]
},
{
"name": "linux-x64-release",
"displayName": "Linux x64 Release Configuration",
"description": "Linux x64 release configuration for Beetle.",
"inherits": ["linux-release", "x64"]
},
{
"name": "linux-x86-debug",
"displayName": "Linux x86 Debug Configuration",
"description": "Linux x86 debug configuration for Beetle.",
"inherits": ["linux-debug", "x86"]
},
{
"name": "linux-x86-release",
"displayName": "Linux x86 Release Configuration",
"description": "Linux x86 release configuration for Beetle.",
"inherits": ["linux-release", "x86"]
}
],
"buildPresets": [
{
"name": "default-build",
"displayName": "Default Build",
"description": "Vanilla Build.",
"configurePreset": "debug"
},
{
"name": "clean-default-build",
"displayName": "Clean Default Build",
"description": "Clean Linux Build.",
"configurePreset": "debug",
"cleanFirst": true
},
{
"name": "default-build-linux",
"displayName": "Default Linux Build",
"description": "Vanilla Linux Build.",
"configurePreset": "linux-debug"
},
{
"name": "clean-default-build-linux",
"displayName": "Clean Default Linux Build",
"description": "Clean Linux Build.",
"configurePreset": "linux-debug",
"cleanFirst": true
}
]
}