-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
141 lines (141 loc) · 4.84 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"version": 6,
"configurePresets": [
{
"name": "linux_gcc_x64_debug",
"displayName": "GCC x86_64-linux-gnu debug mode",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_BUILD_TYPE": "Debug"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "linux_gcc_x64_release",
"displayName": "GCC x86_64-linux-gnu release mode",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_BUILD_TYPE": "Release"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "MSVC_x64_debug",
"description": "use MSVC 2022 (x64) debug mode",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"architecture": "x64",
"toolset": "host=x64",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_BUILD_TYPE": "Debug"
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "MSVC_x64_release",
"description": "use MSVC 2022 (x64) release mode",
"inherits": "MSVC_x64_debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "mingw_x64_windows_debug",
"displayName": "GCC 14.1.0 x86_64-w64-mingw32 (ucrt64) debug mode",
"generator": "Ninja",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "gcc.exe",
"CMAKE_CXX_COMPILER": "g++.exe",
"CMAKE_BUILD_TYPE": "Debug",
"VCPKG_TARGET_TRIPLET": "x64-mingw-dynamic",
"CMAKE_EXPORT_COMPILE_COMMANDS": true
},
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
},
{
"name": "mingw_x64_windows_release",
"displayName": "GCC 14.1.0 x86_64-w64-mingw32 (ucrt64) release mode",
"generator": "Ninja",
"inherits": "mingw_x64_windows_debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
}
],
"buildPresets": [
{
"name": "msvc_x64_build_release",
"configurePreset": "MSVC_x64_release",
"configuration": "Release"
},
{
"name": "linux_x64_build_release",
"configurePreset": "linux_gcc_x64_release",
"configuration": "Release"
}
],
"testPresets": [
{
"name": "checkin_windows",
"configurePreset": "MSVC_x64_release",
"configuration": "Release"
},
{
"name": "checkin_linux",
"configurePreset": "linux_gcc_x64_release",
"configuration": "Release"
}
],
"workflowPresets": [
{
"name": "cicd_on_windows",
"steps": [
{
"type": "configure",
"name": "MSVC_x64_release"
},
{
"type": "build",
"name": "msvc_x64_build_release"
},
{
"type": "test",
"name": "checkin_windows"
}
]
},
{
"name": "cicd_on_linux",
"steps": [
{
"type": "configure",
"name": "linux_gcc_x64_release"
},
{
"type": "build",
"name": "linux_x64_build_release"
},
{
"type": "test",
"name": "checkin_linux"
}
]
}
]
}