-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json
More file actions
142 lines (142 loc) · 4.01 KB
/
CMakePresets.json
File metadata and controls
142 lines (142 loc) · 4.01 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
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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "windows-base",
"hidden": true,
"generator": "Visual Studio 17 2022",
"toolset": "v143,version=14.44",
"binaryDir": "${sourceDir}/build",
"architecture": {
"value": "x64",
"strategy": "external"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"CMAKE_CXX_STANDARD": "23",
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>",
"CMAKE_VS_GLOBALS": "VCToolsVersion=14.44.35207"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "default",
"inherits": "windows-base",
"displayName": "Visual Studio 2022 x64 (default)",
"description": "Primary local + CI configure preset. Static MSVC runtime, x64-windows-static vcpkg triplet."
},
{
"name": "compile-db",
"displayName": "compile_commands.json (Ninja sidecar)",
"description": "Ninja-based configure whose only purpose is to emit a real compile_commands.json for clang-tidy/clangd. Reuses the default preset's vcpkg_installed/ via the same triplet, so configure is fast and no packages are rebuilt. Never built directly; only configured.",
"binaryDir": "${sourceDir}/build-cdb",
"generator": "Ninja",
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "x64-windows-static",
"VCPKG_INSTALLED_DIR": "${sourceDir}/build/vcpkg_installed",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "ci-windows",
"inherits": "default",
"displayName": "CI: Windows / VS 2022",
"description": "Configure preset used by GitHub Actions. Matches local default and keeps cache variables explicit so the build is reproducible."
}
],
"buildPresets": [
{
"name": "windows-release",
"configurePreset": "default",
"displayName": "Release",
"configuration": "Release"
},
{
"name": "windows-debug",
"configurePreset": "default",
"displayName": "Debug",
"configuration": "Debug"
},
{
"name": "windows-tests",
"configurePreset": "default",
"displayName": "Release - tests only",
"configuration": "Release",
"targets": [
"glyph_test_utils",
"glyph_test_settings",
"glyph_test_label_format"
]
},
{
"name": "ci-windows-release",
"configurePreset": "ci-windows",
"displayName": "CI: Release",
"configuration": "Release",
"nativeToolOptions": [
"/m"
]
},
{
"name": "ci-windows-tests",
"configurePreset": "ci-windows",
"displayName": "CI: Tests",
"configuration": "Release",
"targets": [
"glyph_test_utils",
"glyph_test_settings",
"glyph_test_label_format"
],
"nativeToolOptions": [
"/m"
]
}
],
"testPresets": [
{
"name": "windows-release",
"configurePreset": "default",
"displayName": "Run all tests (Release)",
"configuration": "Release",
"output": {
"outputOnFailure": true,
"verbosity": "default"
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
},
{
"name": "ci-windows-release",
"configurePreset": "ci-windows",
"displayName": "CI: Run all tests",
"configuration": "Release",
"output": {
"outputOnFailure": true,
"verbosity": "verbose"
},
"execution": {
"noTestsAction": "error",
"stopOnFailure": false
}
}
]
}