-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakePresets.json
165 lines (164 loc) · 5.25 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
{
"version": 2,
"configurePresets": [
{
"name": "conan-deb",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/conan/deb/conan_toolchain.cmake"
}
},
{
"name": "conan-rel",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/conan/rel/conan_toolchain.cmake"
}
},
{
"name": "vcpkg",
"hidden": true,
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
}
},
{
"name": "rel",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "deb",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"BUILD_TESTS": true
}
},
{
"name": "unix",
"hidden": true,
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "$env{CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -pedantic"
}
},
{
"name": "vs2022",
"hidden": true,
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "$env{CMAKE_CXX_FLAGS} /W4 /WX /EHsc"
}
},
{
"name": "unix-rel",
"displayName": "Unix Make Release",
"binaryDir": "${sourceDir}/build/unix-rel",
"inherits": ["unix", "rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-rel/install"
}
},
{
"name": "unix-deb",
"displayName": "Unix Make Debug",
"binaryDir": "${sourceDir}/build/unix-deb",
"inherits": ["unix", "deb"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-deb/install"
}
},
{
"name": "unix-deb-conan",
"displayName": "Unix Make Debug Conan",
"binaryDir": "${sourceDir}/build/unix-deb-conan",
"inherits": ["unix", "deb", "conan-deb"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-deb-conan/install"
}
},
{
"name": "unix-rel-conan",
"displayName": "Unix Make Release Conan",
"binaryDir": "${sourceDir}/build/unix-rel-conan",
"inherits": ["unix", "rel", "conan-rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-rel-conan/install"
}
},
{
"name": "unix-deb-vcpkg",
"displayName": "Unix Make Debug Vcpkg",
"binaryDir": "${sourceDir}/build/unix-deb-vcpkg",
"inherits": ["unix", "deb", "vcpkg"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/unix-deb-vcpkg/install"
}
},
{
"name": "vs2022-rel",
"displayName": "Visual Studio 2022 Release",
"binaryDir": "${sourceDir}/build/vs2022-rel",
"inherits": ["vs2022", "rel"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/vs2022-rel/install"
}
},
{
"name": "vs2022-deb",
"displayName": "Visual Studio 2022 Debug",
"binaryDir": "${sourceDir}/build/vs2022-deb",
"inherits": ["vs2022", "deb"],
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/vs2022-deb/install"
}
}
],
"buildPresets": [
{
"name": "vs2022-rel",
"displayName": "Visual Studio 2022 Release Build",
"configurePreset": "vs2022-rel",
"configuration": "Release"
},
{
"name": "vs2022-deb",
"displayName": "Visual Studio 2022 Debug Build",
"configurePreset": "vs2022-deb",
"configuration": "Debug"
},
{
"name": "unix-deb",
"displayName": "Unix Make Debug Build",
"configurePreset": "unix-deb",
"configuration": "Debug"
},
{
"name": "unix-deb-conan",
"displayName": "Unix Make Debug Build Conan",
"configurePreset": "unix-deb-conan",
"configuration": "Debug"
},
{
"name": "unix-rel-conan",
"displayName": "Unix Make Release Build Conan",
"configurePreset": "unix-rel-conan",
"configuration": "Release"
},
{
"name": "unix-deb-vcpkg",
"displayName": "Unix Make Debug Build Vcpkg",
"configurePreset": "unix-deb-vcpkg",
"configuration": "Debug"
},
{
"name": "unix-rel",
"displayName": "Unix Make Release Build",
"configurePreset": "unix-rel",
"configuration": "Release"
}
]
}