From f7133d5b439a3b5e49e0b42b3a2f00065cc5113e Mon Sep 17 00:00:00 2001 From: oltolm Date: Sat, 19 Jul 2025 23:32:14 +0200 Subject: [PATCH] cmake: add CMakePresets.json It only contains debug presets because I don't need anything else at the moment. --- .gitignore | 1 + CMakePresets.json | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 CMakePresets.json diff --git a/.gitignore b/.gitignore index a69afd7cc5..fc999b0f94 100644 --- a/.gitignore +++ b/.gitignore @@ -43,3 +43,4 @@ CMakeLists.txt.user /.vscode/ # Ignore flatpak-builder's cache dir .flatpak-builder +CMakeUserPresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000000..059ee18430 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,23 @@ +{ + "version": 2, + "configurePresets": [ + { + "name": "gcc-debug", + "binaryDir": "build-gcc-debug", + "generator": "Ninja", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" + } + }, + { + "name": "clang-debug", + "binaryDir": "build-clang-debug", + "generator": "Ninja", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON" + } + } + ] +}