-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakePresets.json
182 lines (181 loc) · 4.74 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 16,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"description": "Sets build and install directory",
"hidden": true,
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_RUNTIME_OUTPUT_DIRECTORY": "${sourceDir}/out/build/${presetName}/bin"
},
"warnings": { "dev": false }
},
{
"name": "platform-windows",
"description": "Base preset for Windows",
"hidden": true,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "platform-linux",
"description": "Base preset for Linux",
"hidden": true,
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Linux" ]
}
}
},
{
"name": "generator-vs",
"description": "Base preset for configurations using VS 2022 as the generator",
"hidden": true,
"generator": "Visual Studio 17 2022",
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [ "Windows" ]
}
}
},
{
"name": "generator-ninja",
"hidden": true,
"generator": "Ninja"
},
{
"name": "compiler-cl",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "compiler-clang-cl",
"hidden": true,
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl"
},
"toolset": "ClangCL",
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-clang-x64"
}
}
},
{
"name": "compiler-g++",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "architecture-win32",
"hidden": true,
"architecture": {
"value": "Win32",
"strategy": "set"
}
},
{
"name": "architecture-x64",
"hidden": true,
"architecture": {
"value": "x64",
"strategy": "set"
}
},
{
"name": "config-debug",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CONFIGURATION_TYPES": "Debug"
}
},
{
"name": "config-release",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CONFIGURATION_TYPES": "Release"
}
},
{
"name": "windows-cl-debug",
"displayName": "MSVC debug",
"description": "Windows Ninja build using MSVC",
"inherits": [ "base", "platform-windows", "generator-ninja", "compiler-cl", "config-debug" ]
},
{
"name": "windows-cl-release",
"displayName": "MSVC release",
"description": "Windows Ninja build using MSVC",
"inherits": [ "base", "platform-windows", "generator-ninja", "compiler-cl", "config-release" ]
},
{
"name": "linux-ninja-g++-debug",
"description": "Linux Ninja debug build using g++",
"inherits": [ "base", "platform-linux", "generator-ninja", "compiler-g++", "config-debug" ]
},
{
"name": "linux-ninja-g++-release",
"description": "Linux Ninja debug build using g++",
"inherits": [ "base", "platform-linux", "generator-ninja", "compiler-g++", "config-release" ]
}
],
"buildPresets": [
{
"name": "HuxQt-base",
"hidden": true,
"cleanFirst": false,
"targets": [ "HuxQt" ]
},
{
"name": "HuxQt-Linux-Debug",
"displayName": "Linux Debug",
"description": "Linux debug build using g++",
"inherits": "HuxQt-base",
"configurePreset": "linux-ninja-g++-debug",
"configuration": "Debug"
},
{
"name": "HuxQt-Linux-Release",
"displayName": "Linux Release",
"description": "Linux release build using g++",
"inherits": "HuxQt-base",
"configurePreset": "linux-ninja-g++-release",
"configuration": "Release"
},
{
"name": "HuxQt-Windows-Debug",
"displayName": "Windows Debug",
"description": "Windows debug build using MSVC",
"inherits": "HuxQt-base",
"configurePreset": "windows-cl-debug",
"configuration": "Debug"
},
{
"name": "HuxQt-Windows-Release",
"displayName": "Windows Release",
"description": "Windows release build using MSVC",
"inherits": "HuxQt-base",
"configurePreset": "windows-cl-release",
"configuration": "Release"
}
]
}