-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
61 lines (56 loc) · 1.35 KB
/
CMakePresets.json
File metadata and controls
61 lines (56 loc) · 1.35 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
{
"version": 10,
"configurePresets": [
{
"name": "base",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "debug",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "release",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "ninja",
"hidden": true,
"generator": "Ninja"
},
{
"name": "msvc",
"description": "Build with Visual Studio 17 2022. Debug or release can be set in the 'cmake --build' command using '--config Debug/Release'.",
"generator": "Visual Studio 17 2022",
"binaryDir": "${sourceDir}/build/cmake/msvc",
"inherits": ["base"]
},
{
"name": "gcc-release",
"inherits": [ "base", "ninja", "release"],
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
},
"binaryDir": "${sourceDir}/build/cmake/gcc-release"
},
{
"name": "gcc-debug",
"inherits": [ "base", "ninja", "debug"],
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
},
"binaryDir": "${sourceDir}/build/cmake/gcc-debug"
}
]
}