-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakePresets.json
71 lines (71 loc) · 2.29 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
{
"version": 5,
"configurePresets": [
{
"name": "default",
"binaryDir": "${sourceDir}/build/${hostSystemName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": {
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"type": "FILEPATH"
},
"CMAKE_RUNTIME_OUTPUT_DIRECTORY": "${sourceDir}/bin/${hostSystemName}/"
},
"condition": {
"type": "notEquals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "windows-x86",
"inherits": "default",
"displayName": "Windows-X86 Release",
"description": "This build is only available on Windows",
"architecture": "Win32",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
"VCPKG_TARGET_ARCHITECTURE": "x86",
"VCPKG_TARGET_TRIPLET": "x86-windows",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_TOOLCHAIN_FILE": {
"value": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
"type": "FILEPATH"
}
},
"environment": {
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/.vcpkg/triplets",
"VCPKG_TARGET_ARCHITECTURE": "x86",
"VCPKG_TARGET_TRIPLET": "x86-windows"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default",
"configuration": "Release",
"condition": {
"type": "notEquals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "windows-x86",
"inherits": "default",
"configurePreset": "windows-x86",
"configuration": "Release",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
}
]
}