-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
95 lines (95 loc) · 2.28 KB
/
CMakePresets.json
File metadata and controls
95 lines (95 loc) · 2.28 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
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name" : "vcpkg-win32-static-md",
"hidden": true,
"binaryDir": "${sourceDir}/build",
"toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x86-windows-static-md",
"CMAKE_EXPORT_COMPILE_COMMANDS": "YES"
}
},
{
"name" : "vcpkg-win64",
"hidden": true,
"binaryDir": "${sourceDir}/build",
"toolchainFile": "$env{VCPKG_ROOT}\\scripts\\buildsystems\\vcpkg.cmake",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows",
"CMAKE_EXPORT_COMPILE_COMMANDS": "YES"
}
},
{
"name": "vs22-win32",
"architecture": "Win32",
"hidden": true,
"inherits": "vcpkg-win32-static-md",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
}
},
{
"name": "win-dbg",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-D_DEBUG /Od /Zi /MDd /DEBUG /MP8"
}
},
{
"name": "win-rel",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE" : "Release",
"CMAKE_CXX_FLAGS": "-DNDEBUG /O2 /MD"
}
},
{
"name": "vs-x86-debug",
"inherits": ["vs22-win32", "win-dbg", "vcpkg-win32-static-md"]
},
{
"name": "vs-x86-release",
"inherits": ["vs22-win32", "win-rel", "vcpkg-win32-static-md"]
},
{
"name": "ninja",
"generator": "Ninja Multi-Config",
"inherits": ["vcpkg-win64", "win-dbg"],
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"USING_NNG": "ON"
}
}
],
"buildPresets": [
{
"name": "ninja",
"jobs": 8,
"configurePreset": "ninja",
"configuration": "Debug"
},
{
"name": "vs-x86-debug",
"jobs": 8,
"configurePreset": "vs-x86-debug",
"configuration": "Debug"
},
{
"name": "vs-x86-release",
"jobs": 8,
"configuration": "Release",
"configurePreset": "vs-x86-release"
}
]
}