Skip to content

Commit 441331d

Browse files
authored
Create CMakePresets.json
1 parent b26bcdb commit 441331d

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

CMakePresets.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"version": 2,
3+
"cmakeMinimumRequired": {
4+
"major": 3,
5+
"minor": 20,
6+
"patch": 0
7+
},
8+
"configurePresets": [
9+
{
10+
"name": "debug",
11+
"displayName": "Debug",
12+
"description": "Fully featured Debug build",
13+
"inherits": [
14+
"common-flags"
15+
],
16+
"binaryDir": "${sourceDir}/build-debug",
17+
"cacheVariables": {
18+
"CMAKE_BUILD_TYPE": "Debug",
19+
"USERVER_SANITIZE": "addr;ub"
20+
}
21+
},
22+
{
23+
"name": "release",
24+
"displayName": "Release",
25+
"description": "Fully featured Release build",
26+
"inherits": [
27+
"common-flags"
28+
],
29+
"binaryDir": "${sourceDir}/build-release",
30+
"cacheVariables": {
31+
"CMAKE_BUILD_TYPE": "Release"
32+
}
33+
},
34+
{
35+
"name": "common-flags",
36+
"hidden": true,
37+
"generator": "Ninja",
38+
"cacheVariables": {
39+
"USERVER_FEATURE_GRPC": "ON", // grpc template current
40+
"USERVER_FEATURE_POSTGRESQL": "ON", // postgresql template current
41+
"USERVER_FEATURE_MONGODB": "ON", // mongo template current
42+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
43+
}
44+
}
45+
]
46+
}

0 commit comments

Comments
 (0)