From 9b267683f6941720ccc16bb60453674832b29efe Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Fri, 3 Jan 2025 10:43:38 -0700 Subject: [PATCH] Add CMakePresets.json --- .github/workflows/ci.yml | 6 +----- CMakePresets.json | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 CMakePresets.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6adc800..4874bf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,16 +88,12 @@ jobs: - name: Configure ImGui-SFML run: | cmake -S imgui-sfml -B imgui-sfml/build \ + --preset dev -DCMAKE_BUILD_TYPE=${{matrix.type.name}} \ - -DCMAKE_CXX_EXTENSIONS=OFF \ - -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/install \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DIMGUI_DIR=$GITHUB_WORKSPACE/imgui \ -DSFML_ROOT=$GITHUB_WORKSPACE/sfml/install \ - -DIMGUI_SFML_BUILD_EXAMPLES=ON \ - -DIMGUI_SFML_BUILD_TESTING=ON \ - -DIMGUI_SFML_ENABLE_WARNINGS=ON \ ${{matrix.platform.flags}} \ ${{matrix.config.flags}} \ ${{matrix.imgui.flags}} diff --git a/CMakePresets.json b/CMakePresets.json new file mode 100644 index 0000000..0dc5dfe --- /dev/null +++ b/CMakePresets.json @@ -0,0 +1,17 @@ +{ + "version": 3, + "configurePresets":[ + { + "name": "dev", + "binaryDir": "build", + "installDir": "build/install", + "cacheVariables": { + "CMAKE_CXX_EXTENSIONS": "OFF", + "CMAKE_EXPORT_COMPILE_COMMANDS": "ON", + "IMGUI_SFML_BUILD_EXAMPLES": "ON", + "IMGUI_SFML_BUILD_TESTING": "ON", + "IMGUI_SFML_ENABLE_WARNINGS": "ON" + } + } + ] +}