forked from colobot/colobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
111 lines (111 loc) · 3.46 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
109
110
111
{
"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",
"COLOBOT_MSVC_STATIC_RUNTIME": true,
"CBOT_STATIC": true,
"GLEW_STATIC": true,
"SNDFILE_STATIC": true,
"PORTABLE_SAVES": true,
"PORTABLE": true,
"TOOLS": true,
"TESTS": true,
"DESKTOP": true,
"CMAKE_MAKE_PROGRAM": "ninja.exe"
}
},
{
"name": "Linux-CI-base",
"description": "Linux configuration for CI pipeline",
"inherits": ["CI"],
"cacheVariables": {
"CMAKE_SKIP_INSTALL_RPATH": true,
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"COLOBOT_APPIMAGE_BASEPATH_OVERRIDE": true,
"CBOT_STATIC": true,
"PORTABLE_SAVES": true,
"PORTABLE": true,
"TOOLS": true,
"TESTS": true,
"DESKTOP": true
}
},
{
"name": "Linux-CI-gcc",
"inherits": ["Linux-CI-base"],
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_CXX_FLAGS": "-Werror"
}
},
{
"name": "Linux-CI-clang",
"inherits": ["Linux-CI-base"],
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "MacOS-CI",
"description": "MacOS configuration for CI pipeline",
"inherits": ["CI"],
"cacheVariables": {
"CMAKE_SKIP_INSTALL_RPATH": true,
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"PORTABLE_SAVES": 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-gcc",
"jobs": 4,
"configurePreset": "Linux-CI-gcc",
"configuration": "RelWithDebInfo"
},
{
"name": "Linux-CI-clang",
"jobs": 4,
"configurePreset": "Linux-CI-clang",
"configuration": "RelWithDebInfo"
},
{
"name": "MacOS-CI",
"jobs": 4,
"configurePreset": "MacOS-CI",
"configuration": "RelWithDebInfo"
}
]
}