-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakePresets.json
65 lines (65 loc) · 2.1 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
{
"version": 3,
"configurePresets": [
{
"name": "core",
"displayName": "Core",
"description": "Core build for embedded systems",
"binaryDir": "${sourceDir}/build-core",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/dist",
"LibBGCode_BUILD_COMPONENT_Binarize": false,
"LibBGCode_BUILD_COMPONENT_Binarize_Convert": false
}
},
{
"name": "default",
"displayName": "Default",
"description": "Default build for any desktop OS",
"binaryDir": "${sourceDir}/build-default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/dist",
"LibBGCode_DEPS_PRESET": "default",
"CMAKE_PREFIX_PATH": {
"type": "PATH",
"value": "${sourceDir}/deps/build-default/destdir/usr/local"
}
}
},
{
"name": "wasm",
"displayName": "WebAssembly module",
"description": "WebAssembly build which only works with emscripten compiler",
"binaryDir": "${sourceDir}/build-wasm",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/build/dist",
"LibBGCode_BUILD_CMD_TOOL": false,
"LibBGCode_DEPS_PRESET": "wasm",
"CMAKE_FIND_ROOT_PATH": {
"type": "PATH",
"value": "${sourceDir}/deps/build-wasm/destdir/usr/local"
}
}
}
],
"buildPresets": [
{
"name": "core",
"configurePreset": "core",
"configuration": "MinSizeRel"
},
{
"name": "default",
"configurePreset": "default",
"configuration": "Release"
},
{
"name": "wasm",
"configurePreset": "wasm",
"configuration": "MinSizeRel"
}
]
}