-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakePresets.json
51 lines (51 loc) · 1.84 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
{
"version": 2,
"configurePresets": [
{
"name": "ninja-gcc",
"displayName": "Gcc with Ninja",
"description": "Sets Ninja generator, build and install directory",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_INSTALL_PREFIX": "install",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "Linux",
"displayName": "GCC 9.4.0 x86_64-linux-gnu",
"description": "Using compilers: C = /usr/bin/c89-gcc",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "cl.exe"
}
},
{
"name": "msvc",
"displayName": "Visual Studio Community 2022 Release - amd64",
"description": "Using compilers for Visual Studio 17 2022 (x64 architecture)",
"generator": "Visual Studio 17 2022",
"toolset": "host=x64",
"architecture": "x64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
}
],
"buildPresets": [
{
"name": "msvc-debug",
"displayName": "Visual Studio Community 2022 Release - amd64 - Debug",
"configurePreset": "bobiden",
"configuration": "Debug"
}
]
}