diff --git a/CMakePresets.json b/CMakePresets.json index 433d77fa..3191abb6 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -18,10 +18,21 @@ "displayName": "CI configure step for Ubuntu", "description": "Same as default, Used in GitHub actions workflow", "inherits": "default", - "cacheVariables": { + "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" + } + }, + { + "name": "debug-ubuntu-22.04", + "displayName": "Debug configure step for Ubuntu", + "description": "Used to generate debug configuration for Ubuntu", + "inherits": "default", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", - "CMAKE_CXX_FLAGS_INIT": "-O2" + "CMAKE_CXX_FLAGS_INIT" : "-Og", + "CMAKE_C_FLAGS_INIT" : "-Og" } }, { @@ -65,6 +76,22 @@ "description": "Default Build", "jobs": 2 }, + { + "name": "ci-ubuntu-22.04", + "configurePreset": "ci-ubuntu-22.04", + "displayName": "Linux CI Build", + "description": "This preset is used by the CI build on linux", + "configuration": "Release", + "jobs": 2 + }, + { + "name": "debug-ubuntu-22.04", + "configurePreset": "debug-ubuntu-22.04", + "displayName": "Linux Debug Build ", + "description": "This preset is used to debug the build on linux", + "configuration": "Debug", + "jobs": 2 + }, { "name": "ci-windows-2022", "configurePreset": "ci-windows-2022", @@ -73,13 +100,6 @@ "configuration": "Release", "jobs": 2 }, - { - "name": "ci-ubuntu-22.04", - "configurePreset": "ci-ubuntu-22.04", - "displayName": "Linux CI Build", - "description": "This preset is used by the CI build on linux", - "jobs": 2 - }, { "name": "ci-macos-13", "configurePreset": "ci-macos-13", @@ -94,9 +114,23 @@ "configurePreset": "ci-ubuntu-22.04", "displayName": "CI Tests on Linux", "description": "Runs all tests on a linux configuration", - "execution": { - "jobs": 2 - }, + "configuration": "Release", + "execution": { + "jobs": 2 + }, + "output": { + "outputOnFailure": true + } + }, + { + "name": "debug-ubuntu-22.04", + "configurePreset": "debug-ubuntu-22.04", + "displayName": "Debug Tests on Linux", + "description": "Runs all tests on a linux configuration", + "configuration": "Debug", + "execution": { + "jobs": 2 + }, "output": { "outputOnFailure": true } @@ -106,9 +140,9 @@ "configurePreset": "ci-macos-13", "displayName": "CI Tests on MacOS", "description": "Runs all tests on a Mac configuration", - "execution": { - "jobs": 2 - }, + "execution": { + "jobs": 2 + }, "output": { "outputOnFailure": true } @@ -118,18 +152,18 @@ "configurePreset": "ci-windows-2022", "displayName": "CI Tests on windows", "description": "Runs all tests on a windows configuration", - "configuration": "RelWithDebInfo", - "execution": { - "jobs": 2 - }, + "configuration": "RelWithDebInfo", + "execution": { + "jobs": 2 + }, "output": { "outputOnFailure": true }, - "filter": { - "exclude": { - "name": "((example)|(minigzip))+" - } - } + "filter": { + "exclude": { + "name": "((example)|(minigzip))+" + } + } } ] }