/
CMakePresets.json
86 lines (86 loc) · 2.63 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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 21,
"patch": 0
},
"configurePresets": [
{
"name": "CI",
"description": "Base configuration for CI pipeline",
"hidden": true,
"binaryDir": "${sourceDir}/build",
"installDir": "${sourceDir}/install"
},
{
"name": "Windows-CI",
"description": "Windows configuration for CI pipeline",
"generator": "Ninja",
"inherits": ["CI"],
"cacheVariables": {
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"USE_STATIC_RUNTIME": true,
"CBOT_STATIC": true,
"GLEW_STATIC": true,
"SNDFILE_STATIC": true,
"DEV_BUILD": true,
"PORTABLE": true,
"TOOLS": true,
"TESTS": true,
"DESKTOP": true
}
},
{
"name": "Linux-CI",
"description": "Linux configuration for CI pipeline",
"inherits": ["CI"],
"cacheVariables": {
"CMAKE_SKIP_INSTALL_RPATH": true,
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CBOT_STATIC": true,
"DEV_BUILD": true,
"PORTABLE": true,
"TOOLS": true,
"TESTS": true,
"DESKTOP": true
}
},
{
"name": "MacOS-CI",
"description": "MacOS configuration for CI pipeline",
"inherits": ["CI"],
"cacheVariables": {
"CMAKE_SKIP_INSTALL_RPATH": true,
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"DEV_BUILD": true,
"PORTABLE": true,
"TESTS": true,
"DESKTOP": true,
"OPENAL_LIBRARY": "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenAL.framework/OpenAL.tbd"
}
}
],
"buildPresets": [
{
"name": "Windows-CI",
"jobs": 4,
"configurePreset": "Windows-CI",
"configuration": "RelWithDebInfo"
},
{
"name": "Linux-CI",
"jobs": 4,
"configurePreset": "Linux-CI",
"configuration": "RelWithDebInfo"
},
{
"name": "MacOS-CI",
"jobs": 4,
"configurePreset": "MacOS-CI",
"configuration": "RelWithDebInfo"
}
]
}