-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
60 lines (59 loc) · 1.42 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
{
"version": 9,
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
"cmakeMinimumRequired": {
"major": 3,
"minor": 30,
"patch": 0
},
"configurePresets": [
{
"name": "config-base",
"hidden": true,
"displayName": "base Configuration",
"description": "Default build using Unix Makefile generator",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "debug",
"displayName": "Config Debug",
"description": "Sets debug build type",
"inherits": "config-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"displayName": "Config Release",
"description": "Sets release build type",
"inherits": "config-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "build-base",
"hidden": true,
"configurePreset": "debug"
},
{
"name": "debug",
"displayName": "Build Debug",
"inherits": "build-base"
},
{
"name": "release",
"displayName": "Build Release",
"inherits": "build-base",
"configurePreset": "release"
}
]
}