50 lines
1.0 KiB
JSON
50 lines
1.0 KiB
JSON
{
|
||
"version": 3,
|
||
"cmakeMinimumRequired": {
|
||
"major": 3,
|
||
"minor": 21,
|
||
"patch": 0
|
||
},
|
||
"configurePresets": [
|
||
{
|
||
"name": "gcc",
|
||
"hidden": true,
|
||
"generator": "Ninja",
|
||
"binaryDir": "${sourceDir}/build/${presetName}",
|
||
"cacheVariables": {
|
||
"CMAKE_C_COMPILER": "gcc",
|
||
"CMAKE_CXX_COMPILER": "g++",
|
||
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
|
||
}
|
||
},
|
||
{
|
||
"name": "gcc-debug",
|
||
"displayName": "GCC Debug",
|
||
"description": "使用 PATH 中的 gcc / g++,Debug",
|
||
"inherits": "gcc",
|
||
"cacheVariables": {
|
||
"CMAKE_BUILD_TYPE": "Debug"
|
||
}
|
||
},
|
||
{
|
||
"name": "gcc-release",
|
||
"displayName": "GCC Release",
|
||
"description": "使用 PATH 中的 gcc / g++,Release",
|
||
"inherits": "gcc",
|
||
"cacheVariables": {
|
||
"CMAKE_BUILD_TYPE": "Release"
|
||
}
|
||
}
|
||
],
|
||
"buildPresets": [
|
||
{
|
||
"name": "gcc-debug",
|
||
"configurePreset": "gcc-debug"
|
||
},
|
||
{
|
||
"name": "gcc-release",
|
||
"configurePreset": "gcc-release"
|
||
}
|
||
]
|
||
}
|