From e90ac85862a455a24057edc42523a45c60d1aff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Simonis?= Date: Thu, 6 Feb 2025 16:43:27 +0100 Subject: [PATCH] Add CMake presets --- CMakePresets.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 CMakePresets.json diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 00000000..89b9ae07 --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,46 @@ +{ + "version": 3, + "configurePresets": [ + { + "name": "base", + "hidden": true, + "binaryDir": "${sourceDir}/build" + }, + { + "name": "production", + "inherits": "base", + "displayName": "Production release", + "description": "Release configuration for preCICE used in production.", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON" + } + }, + { + "name": "development", + "inherits": "base", + "displayName": "Development", + "description": "Development config with default settings", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_CXX_FLAGS": "-Wall -Wextra -Wno-unused-parameter" + }, + "warnings": { + "dev": true, + "deprecated": true, + "uninitialized": true + } + }, + { + "name": "profiling", + "inherits": "development", + "displayName": "Profiling", + "description": "Profiling configuration", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "RelWithDebInfo", + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON", + "CMAKE_CXX_FLAGS": "-Wall -Wextra -Wno-unused-parameter -fno-omit-frame-pointer" + } + } + ] +}