diff --git a/CMakePresets.json.sample b/CMakePresets.json.sample index be134bb991..c21ae7c188 100644 --- a/CMakePresets.json.sample +++ b/CMakePresets.json.sample @@ -1,56 +1,83 @@ { - "version": 3, + "version": 9, "configurePresets": [ - { - "name": "base", - "hidden": true, - "generator": "Ninja", - "binaryDir": "${sourceDir}/build", - "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", - "condition": { - "type": "equals", - "lhs": "${hostSystemName}", - "rhs": "Windows" + { + "name": "base", + "hidden": true, + "generator": "Ninja", + "binaryDir": "${sourceDir}/build", + "toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake", + "condition": { + "type": "equals", + "lhs": "${hostSystemName}", + "rhs": "Windows" + }, + "cacheVariables": { + "KICAD_BUILD_QA_TESTS": "OFF", + "KICAD_BUILD_I18N": "ON", + "KICAD_SCRIPTING_WXPYTHON": "ON" + } }, - "cacheVariables": { - "KICAD_BUILD_QA_TESTS": "OFF", - "KICAD_BUILD_I18N": "ON", - "KICAD_SCRIPTING_WXPYTHON": "ON" - } - }, - { - "name": "win64", - "hidden": true, - "cacheVariables": { - "KICAD_WIN32_DPI_AWARE": "ON", - "CMAKE_INSTALL_PREFIX": "out", - "CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb" + { + "name": "win64", + "hidden": true, + "cacheVariables": { + "KICAD_WIN32_DPI_AWARE": "ON", + "CMAKE_INSTALL_PREFIX": "out", + "CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb" + }, + "architecture": { + "value": "x64", + "strategy": "external" + }, + "inherits": [ + "base" + ] }, - "architecture": { - "value": "x64", - "strategy": "external" + { + "name": "x64-debug", + "displayName": "x64 Debug", + "description": "Sets debug build type and x64 arch", + "inherits": "win64", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug" + } }, - "inherits": [ - "base" - ] - }, - { - "name": "x64-debug", - "displayName": "x64 Debug", - "description": "Sets debug build type and x64 arch", - "inherits": "win64", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" + { + "name": "x64-release", + "displayName": "x64 Release", + "description": "Sets release build type", + "inherits": "win64", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "RelWithDebInfo" + } } - }, - { - "name": "x64-release", - "displayName": "x64 Release", - "description": "Sets release build type", - "inherits": "win64", - "cacheVariables": { - "CMAKE_BUILD_TYPE": "RelWithDebInfo" + ], + "buildPresets": [ + { + "name": "kicad", + "configurePreset": "x64-debug", + "configuration": "Debug", + "targets": [ + "install" + ] + } + ], + "workflowPresets": [ + { + "name": "kicad", + "description": "kicad", + "displayName": "kicad", + "steps": [ + { + "type": "configure", + "name": "x64-debug" + }, + { + "type": "build", + "name": "kicad" + } + ] } - } ] } \ No newline at end of file