-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
164 lines (157 loc) · 4.75 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "ninja",
"hidden": true,
"displayName": "Base Config",
"description": "Sets Ninja Multi-Config generator, compilers, x64 architecture, build and install directory, debug build type",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/Solutions/${presetName}",
"warnings": { "dev": false },
"errors": { "dev": false },
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"OPTION_RUNTIME_CVAR_OVERRIDES": "ON",
"OPTION_REMOTE_CONSOLE": "ON",
"OPTION_DX_RENDERER": "ON",
"OPTION_VK_RENDERER": "OFF",
"OPTION_BUILD_DOCS": "ON",
"USE_STEAM": "OFF",
"OPTION_DEDICATED_SERVER": "OFF",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/Tools/CMake/toolchain/windows/WindowsPC-MSVC.cmake",
"VCPKG_TARGET_TRIPLET": "x64-windows",
"VCPKG_INSTALLER": "ON",
"DOWNLOAD_VCPKG" : "ON",
"VCPKG_ROOT": {
"value": "${sourceDir}/vcpkg",
"type": "FILEPATH"
},
"ADD_PACKAGE_DEP_MODE": "OFF",
"CMAKE_CONFIGURATION_TYPES": "Release;Debug;Profile"
},
"environment": {
"solutionDir": "${sourceDir}/Solutions"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
}
},
{
"name": "windows-ninja",
"inherits": "ninja",
"displayName": "Windows x64 Ninja Multi-Config",
"cacheVariables": {
"CMAKE_SYSTEM_VERSION": "10",
//"OPTION_SANDBOX": "ON",
"OPTION_STATIC_LINKING": "ON",
"OPTION_STATIC_LINKING_WITH_GAME_AS_DLL": "ON",
"QT_SDK_ROOT" : "C:",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/Tools/CMake/toolchain/windows/WindowsPC-MSVC.cmake",
"USE_MSVC": "ON"
//"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/Tools/CMake/toolchain/windows/WindowsPC-Clang.cmake"
}
},
{
"name": "vs2019-msvc",
"inherits": "ninja",
"displayName": "vs2019 Config",
"description": "Visual Studio 2019 Config generator",
"generator": "Visual Studio 16 2019",
"cacheVariables": {
"CMAKE_SYSTEM_VERSION": "10",
"OPTION_SANDBOX": "OFF",
"OPTION_STATIC_LINKING": "ON",
"OPTION_STATIC_LINKING_WITH_GAME_AS_DLL": "OFF",
"QT_SDK_ROOT" : "C:",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/Tools/CMake/toolchain/windows/WindowsPC-MSVC.cmake",
"USE_MSVC": "ON"
}
},
{
"name": "vs2022-msvc",
"inherits": "ninja",
"displayName": "vs2022 Config",
"description": "Visual Studio 2022 Config generator",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_SYSTEM_VERSION": "10",
"OPTION_SANDBOX": "OFF",
"OPTION_STATIC_LINKING": "ON",
"QT_SDK_ROOT" : "C:",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/Tools/CMake/toolchain/windows/WindowsPC-MSVC.cmake",
"USE_MSVC": "ON"
}
},
{
"name": "vs2022-clang",
"inherits": "ninja",
"displayName": "vs2022 Config",
"description": "Visual Studio 2022 Config generator",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_SYSTEM_VERSION": "10",
"OPTION_SANDBOX": "ON",
"QT_SDK_ROOT" : "C:",
"VCPKG_CHAINLOAD_TOOLCHAIN_FILE": "${sourceDir}/Tools/CMake/toolchain/windows/WindowsPC-Clang.cmake"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-clang-x64"
}
}
}
],
"buildPresets": [
{
"name": "windows-ninja-debug",
"configurePreset": "windows-ninja",
"configuration": "Debug"
},
{
"name": "windows-ninja-release",
"configurePreset": "windows-ninja",
"configuration": "Release"
},
{
"name": "vs2022-msvc-debug",
"configurePreset": "vs2022-msvc",
"configuration": "Debug"
},
{
"name": "vs2022-msvc-release",
"configurePreset": "vs2022-msvc",
"configuration": "Release"
},
{
"name": "vs2022-clang-debug",
"configurePreset": "vs2022-clang",
"configuration": "Debug"
},
{
"name": "vs2022-clang-release",
"configurePreset": "vs2022-clang",
"configuration": "Release"
},
{
"name": "vs2019-msvc-debug",
"configurePreset": "vs2019-msvc",
"configuration": "Debug"
},
{
"name": "vs2019-msvc-release",
"configurePreset": "vs2019-msvc",
"configuration": "Release"
}
]
}