-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakePresets.json
108 lines (108 loc) · 2.31 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "default",
"displayName": "Default Config",
"description": "Default build using Ninja Multi-Config generator",
"generator": "Ninja Multi-Config",
"toolchainFile": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"CMAKE_MODULE_PATH": "${sourceDir}/cmake",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "static",
"inherits": [
"default"
],
"cacheVariables": {
"BUILD_STATIC": "ON"
}
},
{
"name": "windows-static",
"inherits": [
"static"
],
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "$env{Platform}-windows-static"
}
},
{
"name": "macos",
"inherits": [
"default"
],
"cacheVariables": {
"VCPKG_OSX_DEPLOYMENT_TARGET": "13.4"
}
},
{
"name": "tests",
"inherits": [
"default"
],
"cacheVariables": {
"BUILD_TESTS": "ON"
}
}
],
"buildPresets": [
{
"name": "debug",
"configurePreset": "default",
"configuration": "Debug"
},
{
"name": "release",
"configurePreset": "default",
"configuration": "Release"
},
{
"name": "static-release",
"configurePreset": "static",
"configuration": "Release"
},
{
"name": "windows-static-release",
"configurePreset": "windows-static",
"configuration": "Release"
},
{
"name": "macos-release",
"configurePreset": "macos",
"configuration": "Release"
},
{
"name": "debug-tests",
"configurePreset": "tests",
"configuration": "Debug"
},
{
"name": "release-tests",
"configurePreset": "tests",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "run-debug-tests",
"configurePreset": "tests",
"configuration": "Debug"
},
{
"name": "run-release-tests",
"configurePreset": "tests",
"configuration": "Release"
}
]
}