-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakePresets.json.sample
More file actions
98 lines (98 loc) · 2.7 KB
/
Copy pathCMakePresets.json.sample
File metadata and controls
98 lines (98 loc) · 2.7 KB
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
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "base-data-path",
"hidden": true,
"description": "Base preset defining the shared DATA_PATH variable",
"cacheVariables": {
"DATA_PATH": {
"value": "",
"type": "PATH"
}
}
},
{
"name": "windows-msvc",
"displayName": "Windows (MSVC & VS 2022)",
"description": "Configure build for Windows using Visual Studio 2022 (x64 architecture)",
"inherits": "base-data-path",
"generator": "Visual Studio 17 2022",
"toolset": "host=x64",
"architecture": "x64",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/install/${presetName}",
"CMAKE_C_COMPILER": "cl.exe",
"CMAKE_CXX_COMPILER": "cl.exe"
}
},
{
"name": "linux-gcc",
"displayName": "Linux (GCC & Makefiles)",
"description": "Configure build for Linux using GCC compiler and Unix Makefiles",
"inherits": "base-data-path",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "macos-clang",
"displayName": "macOS (Clang & Makefiles)",
"description": "Configure build for macOS using AppleClang compiler and Unix Makefiles",
"inherits": "base-data-path",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++"
}
}
],
"buildPresets": [
{
"name": "windows-msvc-debug",
"displayName": "Windows Debug",
"configurePreset": "windows-msvc",
"configuration": "Debug"
},
{
"name": "windows-msvc-release",
"displayName": "Windows Release",
"configurePreset": "windows-msvc",
"configuration": "Release"
},
{
"name": "linux-gcc-debug",
"displayName": "Linux Debug",
"configurePreset": "linux-gcc",
"configuration": "Debug"
},
{
"name": "linux-gcc-release",
"displayName": "Linux Release",
"configurePreset": "linux-gcc",
"configuration": "Release"
},
{
"name": "macos-clang-debug",
"displayName": "macOS Debug",
"configurePreset": "macos-clang",
"configuration": "Debug"
},
{
"name": "macos-clang-release",
"displayName": "macOS Release",
"configurePreset": "macos-clang",
"configuration": "Release"
}
]
}