-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakePresets.json
32 lines (32 loc) · 969 Bytes
/
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
{
"version": 6,
"cmakeMinimumRequired": {
"major": 3,
"minor": 26,
"patch": 0
},
"configurePresets": [
{
"hidden": true,
"name": "ninja-debug",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"installDir": "${sourceDir}/build/out",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
"CMAKE_VERBOSE_MAKEFILE": false,
"CMAKE_POLICY_DEFAULT_CMP0123": "NEW"
}
},
{
"name": "STM32G474",
"inherits": "ninja-debug",
"cacheVariables": {
"TOOLCHAIN_OPTIMIZATION_FLAG": "-Og",
"EMBEDDED_LUA_BUILD_EXAMPLES": true
},
"toolchainFile": "${sourceDir}/cmake/toolchains/gcc/gcc_arm_m4f_toolchain.cmake"
}
]
}