forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
68 lines (68 loc) · 1.88 KB
/
CMakePresets.json
File metadata and controls
68 lines (68 loc) · 1.88 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
{
"version": 8,
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
"configurePresets": [
{
"name": "base",
"displayName": "base preset",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}",
"hidden": true
},
{
"name": "base-debug",
"displayName": "base debug preset",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build-${presetName}",
"hidden": true,
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_BUILD_TYPE": "Debug",
"SLINT_BUILD_EXAMPLES": "ON",
"SLINT_BUILD_TESTING": "ON"
}
},
{
"name": "debug-mold",
"displayName": "Build as debug + using mold linker",
"cacheVariables": {
"CMAKE_SHARED_LINKER_FLAGS": "-fuse-ld=mold"
},
"inherits": [
"base-debug"
]
},
{
"name": "debug",
"displayName": "Build against",
"binaryDir": "${sourceDir}/build",
"inherits": [
"base-debug"
]
},
{
"name": "release",
"displayName": "Build as release mode.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
},
"inherits": [
"base"
]
}
],
"buildPresets": [
{
"name": "debug-mold",
"configurePreset": "debug-mold"
},
{
"name": "debug",
"configurePreset": "debug"
},
{
"name": "release",
"configurePreset": "release"
}
]
}