fix: Add x64-Debug and win64-Release presets in the CMakePresets sample

This commit is contained in:
Ethan Chien 2024-03-29 00:50:42 +08:00
parent 3a430357bc
commit 79174f8223
1 changed files with 28 additions and 37 deletions

View File

@ -6,13 +6,6 @@
"patch": 0 "patch": 0
}, },
"configurePresets": [ "configurePresets": [
{
"name": "dev-mode",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{ {
"name": "vcpkg", "name": "vcpkg",
"hidden": true, "hidden": true,
@ -25,49 +18,47 @@
"description": "This preset is var settings for KiCad", "description": "This preset is var settings for KiCad",
"hidden": true, "hidden": true,
"cacheVariables": { "cacheVariables": {
"CMAKE_INSTALL_PREFIX": "out",
"CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb",
"KICAD_BUILD_QA_TESTS": "OFF", "KICAD_BUILD_QA_TESTS": "OFF",
"KICAD_BUILD_I18N": "ON", "KICAD_BUILD_I18N": "ON",
"KICAD_SCRIPTING_WXPYTHON": "ON" "KICAD_SCRIPTING_WXPYTHON": "ON"
} }
}, },
{ {
"name": "ci-std", "name": "win64",
"description": "This preset makes sure the project actually builds with at least the specified standard",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "17",
"CMAKE_CXX_STANDARD_REQUIRED": "ON",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
},
{
"name": "ci-build",
"binaryDir": "${sourceDir}/build",
"hidden": true
},
{
"name": "ci-win64",
"inherits": [
"ci-std"
],
"generator": "Ninja", "generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"hidden": true, "hidden": true,
"cacheVariables": { "cacheVariables": {
"KICAD_WIN32_DPI_AWARE": "ON" "KICAD_WIN32_DPI_AWARE": "ON",
} "CMAKE_INSTALL_PREFIX": "out",
"CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb"
}, },
{
"name": "ci-windows",
"inherits": [ "inherits": [
"ci-build",
"ci-win64",
"dev-mode",
"vcpkg", "vcpkg",
"KiCad" "KiCad"
] ]
},
{
"name": "win64-Release",
"inherits": [
"win64",
"vcpkg",
"KiCad"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "win64-Debug",
"inherits": [
"win64",
"vcpkg",
"KiCad"
],
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
} }
] ]
} }