-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
82 lines (82 loc) · 3.08 KB
/
Copy pathCMakePresets.json
File metadata and controls
82 lines (82 loc) · 3.08 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
{
"version": 8,
"configurePresets": [
{
"name": "Debugging",
"displayName": "gcc with debugging",
"description": "Sets Ninja generator and debugging",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_CXX_FLAGS": "-g2 -Wall -Wextra"
}
},
{
"name": "Release",
"displayName": "optimized",
"description": "Sets Ninja generator with optimization enabled",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_CXX_FLAGS": "-O3 -Wall -Wextra"
}
},
{
"name": "Profiling",
"displayName": "gcc with profiling",
"description": "Sets Ninja generator, and profiling",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_CXX_FLAGS": "-pg",
"CMAKE_SHARED_LINKER_FLAGS": "-pg"
}
},
{
"name": "clang-build",
"displayName": "Clang",
"description": "Using compilers: C = /usr/bin/clang, CXX = /usr/bin/clang++",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_CXX_COMPILER": "/usr/bin/clang++",
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "raspi-x-tools",
"displayName": "Configure preset x-tools-raspi",
"description": "Sets Ninja generator, build and install directory",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_TOOLCHAIN_FILE": "${env:CMAKE_TOOLCHAIN_FILE}",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}" }
}
],
"buildPresets": [
{
"name": "Debugging",
"description": "",
"displayName": "Debugging build",
"configurePreset": "Debugging",
"jobs": 4
}, {
"name": "Profiling",
"description": "",
"displayName": "Profiling build",
"configurePreset": "Profiling",
"jobs": 4
}
]
}