/ CMakePresets.json
CMakePresets.json
1 { 2 "version": 3, 3 "configurePresets": [ 4 { 5 "name": "default", 6 "hidden": true, 7 "generator": "Ninja", 8 "binaryDir": "${sourceDir}/build/${presetName}", 9 "toolchainFile": "${sourceDir}/cmake/gcc-arm-none-eabi.cmake", 10 "cacheVariables": { 11 "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" 12 } 13 }, 14 { 15 "name": "Debug", 16 "inherits": "default", 17 "cacheVariables": { 18 "CMAKE_BUILD_TYPE": "Debug" 19 } 20 }, 21 { 22 "name": "RelWithDebInfo", 23 "inherits": "default", 24 "cacheVariables": { 25 "CMAKE_BUILD_TYPE": "RelWithDebInfo" 26 } 27 }, 28 { 29 "name": "Release", 30 "inherits": "default", 31 "cacheVariables": { 32 "CMAKE_BUILD_TYPE": "Release" 33 } 34 }, 35 { 36 "name": "MinSizeRel", 37 "inherits": "default", 38 "cacheVariables": { 39 "CMAKE_BUILD_TYPE": "MinSizeRel" 40 } 41 } 42 ], 43 "buildPresets": [ 44 { 45 "name": "Debug", 46 "configurePreset": "Debug" 47 }, 48 { 49 "name": "RelWithDebInfo", 50 "configurePreset": "RelWithDebInfo" 51 }, 52 { 53 "name": "Release", 54 "configurePreset": "Release" 55 }, 56 { 57 "name": "MinSizeRel", 58 "configurePreset": "MinSizeRel" 59 } 60 ] 61 }