-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCMakePresets.json
126 lines (126 loc) · 3.68 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
{
"version": 2,
"configurePresets": [
{
"name": "vcpkg-base",
"hidden": true,
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"VCPKG_FEATURE_FLAGS": "manifests"
}
},
{
"name": "base-debug",
"hidden": true,
"inherits": "vcpkg-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_STANDARD": "23"
}
},
{
"name": "base-release",
"hidden": true,
"inherits": "vcpkg-base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_STANDARD": "23"
}
},
{
"name": "visualstudio-vcpkg",
"hidden": true,
"generator": "Visual Studio 17 2022",
"inherits": "vcpkg-base"
},
{
"name": "ninja-vcpkg",
"hidden": true,
"generator": "Ninja",
"inherits": "vcpkg-base"
},
{
"name": "msvc-x64-debug",
"inherits": [
"visualstudio-vcpkg",
"base-debug"
],
"binaryDir": "${sourceDir}/build/x64-Debug",
"cacheVariables": {
"CMAKE_GENERATOR_PLATFORM": "x64",
"CMAKE_CXX_FLAGS": "/DDEBUG /W3 /MDd /EHsc",
"CMAKE_C_FLAGS": "/DDEBUG /W3 /MDd /EHsc"
}
},
{
"name": "msvc-x64-release",
"inherits": [
"visualstudio-vcpkg",
"base-release"
],
"binaryDir": "${sourceDir}/build/x64-Release",
"cacheVariables": {
"CMAKE_GENERATOR_PLATFORM": "x64",
"CMAKE_CXX_FLAGS": "/O2 /MD /EHsc",
"CMAKE_C_FLAGS": "/O2 /MD /EHsc"
}
},
{
"name": "ninja-debug",
"inherits": [
"ninja-vcpkg",
"base-debug"
],
"binaryDir": "${sourceDir}/build/ninja-debug"
},
{
"name": "ninja-release",
"inherits": [
"ninja-vcpkg",
"base-release"
],
"binaryDir": "${sourceDir}/build/ninja-release"
}
],
"buildPresets": [
{
"name": "msvc-x64-debug",
"configurePreset": "msvc-x64-debug",
"description": "Build for Windows x64 Debug",
"verbose": true
},
{
"name": "msvc-x64-release",
"configurePreset": "msvc-x64-release",
"description": "Build for Windows x64 Release",
"verbose": true
},
{
"name": "ninja-debug",
"configurePreset": "ninja-debug",
"description": "Build for Ninja debug",
"verbose": true
},
{
"name": "ninja-release",
"configurePreset": "ninja-release",
"description": "Build for Ninja Release",
"verbose": true
}
],
"testPresets": [
{
"name": "msvc-x64-test",
"configurePreset": "msvc-x64-debug",
"description": "Run tests for Windows x64 Debug",
"displayName": "Tests (MSVC)"
},
{
"name": "ninja-test",
"configurePreset": "ninja-debug",
"description": "Run tests for Ninja Debug",
"displayName": "Tests (Ninja)"
}
]
}