Skip to content

Commit

Permalink
Add CMakePresets.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Jan 3, 2025
1 parent 7418093 commit 3cdf005
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,11 @@ 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}}
Expand Down
17 changes: 17 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}

0 comments on commit 3cdf005

Please sign in to comment.