-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakePresets.json
105 lines (105 loc) · 3 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
{
"version": 3,
"configurePresets": [
{
"name": "generic",
"displayName": "Generic",
"description": "Target with Ninja and vcpkg",
"generator": "Ninja Multi-Config",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_CONFIGURATION_TYPES": "Release;RelWithDebInfo;Debug",
"CMAKE_TOOLCHAIN_FILE": {
"value": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"type": "FILEPATH"
}
}
},
{
"name": "windows-x64",
"description": "Target Windows",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"value": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"type": "FILEPATH"
},
"CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS": true
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "xcode",
"displayName": "Xcode configuration",
"description": "Target Darwin with Xcode.",
"generator": "Xcode",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"installDir": "${sourceDir}/out/install/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"value": "${sourceDir}/vcpkg/scripts/buildsystems/vcpkg.cmake",
"type": "FILEPATH"
},
"CMAKE_XCODE_XCCONFIG": {
"value": "${sourceDir}/vendor/XcodeWarnings/XcodeWarnings.xcconfig",
"type": "FILEPATH"
}
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"environment": {
"CXXFLAGS": "-D_LIBCPP_ABI_FIX_CITYHASH_IMPLEMENTATION"
}
}
],
"buildPresets": [
{
"name": "generic-debug",
"displayName": "Generic debug",
"description": "Generic debug build",
"configurePreset": "generic",
"configuration": "Debug"
},
{
"name": "generic-release",
"displayName": "Generic release",
"description": "Generic release build",
"configurePreset": "generic",
"configuration": "Release"
},
{
"name": "windows-x64-debug",
"displayName": "Windows x64 debug",
"description": "Windows x64 debug build",
"configurePreset": "windows-x64",
"configuration": "Debug"
},
{
"name": "windows-x64-release",
"displayName": "Windows x64 release",
"description": "Windows x64 release build",
"configurePreset": "windows-x64",
"configuration": "Release"
},
{
"name": "xcode",
"displayName": "Xcode build",
"description": "Xcode build",
"configurePreset": "xcode"
}
]
}