-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
88 lines (88 loc) · 2.47 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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"description": "Unix default config",
"hidden": true,
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build/${presetName}/",
"installDir": "${sourceDir}/build/${presetName}/install",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
},
"cacheVariables": {
"SRV_BUILD_EXAMPLES": true
}
},
{
"name": "makefile-x86_64-linux-debug",
"displayName": "x64 Debug",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"SRV_BUILD_TESTS": true,
"SRV_BUILD_BENCHMARKS": false
}
},
{
"name": "makefile-x86_64-linux-release",
"displayName": "x64 Release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"SRV_BUILD_BENCHMARKS": true
},
"inherits": "makefile-x86_64-linux-debug"
}
],
"buildPresets": [
{
"name": "debug-build-linux",
"displayName": "amd64Debug",
"configurePreset": "makefile-x86_64-linux-debug",
"description": "Debug build"
},
{
"name": "release-build-linux",
"displayName": "amd64Release",
"configurePreset": "makefile-x86_64-linux-release",
"description": "Release build"
}
],
"testPresets": [
{
"name": "test-amd64",
"description": "Testing on linux",
"configurePreset": "makefile-x86_64-linux-debug",
"output": {
"outputOnFailure": true
}
}
],
"workflowPresets": [
{
"name": "debug",
"steps": [
{
"type": "configure",
"name": "makefile-x86_64-linux-debug"
},
{
"type": "build",
"name": "debug-build-linux"
},
{
"type": "test",
"name": "test-amd64"
}
]
}
]
}