Repository navigation
Expand file tree
/
Copy pathCMakePresets.json
More file actions
109 lines (109 loc) · 4.48 KB
/
Copy pathCMakePresets.json
File metadata and controls
109 lines (109 loc) · 4.48 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
99
100
101
102
103
104
105
106
107
108
109
{
"version": 3,
"cmakeMinimumRequired": { "major": 3, "minor": 21, "patch": 0 },
"configurePresets": [
{
"name": "windows",
"displayName": "Windows (default Visual Studio)",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build"
},
{
"name": "linux-debug",
"displayName": "Linux Debug",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" },
"binaryDir": "${sourceDir}/build",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Debug" }
},
{
"name": "linux-release",
"displayName": "Linux Release",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux" },
"binaryDir": "${sourceDir}/build",
"cacheVariables": { "CMAKE_BUILD_TYPE": "Release" }
},
{
"name": "macos",
"displayName": "macOS (Xcode)",
"generator": "Xcode",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin" },
"binaryDir": "${sourceDir}/build"
},
{
"name": "mingw-debug",
"displayName": "Windows MinGW Debug (Ninja, needs gcc on PATH)",
"generator": "Ninja",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build/mingw",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/mingw"
}
},
{
"name": "mingw-release",
"displayName": "Windows MinGW Release (Ninja, needs gcc on PATH)",
"generator": "Ninja",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build/mingw",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_COMPILER": "gcc",
"CMAKE_CXX_COMPILER": "g++",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/mingw"
}
},
{
"name": "windows-clang-cl",
"displayName": "Windows clang-cl (Visual Studio solution, ClangCL toolset)",
"toolset": "ClangCL",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build/clang-cl-vs",
"cacheVariables": {
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/clang-cl-vs"
}
},
{
"name": "clang-cl-debug",
"displayName": "Windows clang-cl Debug (Ninja, needs LLVM on PATH)",
"generator": "Ninja",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build/clang-cl",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/clang-cl"
}
},
{
"name": "clang-cl-release",
"displayName": "Windows clang-cl Release (Ninja, needs LLVM on PATH)",
"generator": "Ninja",
"condition": { "type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows" },
"binaryDir": "${sourceDir}/build/clang-cl",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_COMPILER": "clang-cl",
"CMAKE_CXX_COMPILER": "clang-cl",
"FETCHCONTENT_BASE_DIR": "${sourceDir}/.fetchcontent-cache/clang-cl"
}
}
],
"buildPresets": [
{ "name": "windows-debug", "configurePreset": "windows", "configuration": "Debug" },
{ "name": "windows-release", "configurePreset": "windows", "configuration": "Release" },
{ "name": "linux-debug", "configurePreset": "linux-debug" },
{ "name": "linux-release", "configurePreset": "linux-release" },
{ "name": "macos-debug", "configurePreset": "macos", "configuration": "Debug" },
{ "name": "macos-release", "configurePreset": "macos", "configuration": "Release" },
{ "name": "mingw-debug", "configurePreset": "mingw-debug" },
{ "name": "mingw-release", "configurePreset": "mingw-release" },
{ "name": "windows-clang-cl-debug", "configurePreset": "windows-clang-cl", "configuration": "Debug" },
{ "name": "windows-clang-cl-release", "configurePreset": "windows-clang-cl", "configuration": "Release" },
{ "name": "clang-cl-debug", "configurePreset": "clang-cl-debug" },
{ "name": "clang-cl-release", "configurePreset": "clang-cl-release" }
]
}