Skip to content

Commit

Permalink
[ci] Add magic_enum to deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 15, 2024
1 parent e2e7332 commit 30a7e76
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,6 @@
[submodule "3rdparty/async-mqtt5"]
path = 3rdparty/async-mqtt5
url = https://github.com/mireo/async-mqtt5
[submodule "3rdparty/magic_enum"]
path = 3rdparty/magic_enum
url = https://github.com/Neargye/magic_enum
1 change: 1 addition & 0 deletions 3rdparty/magic_enum
Submodule magic_enum added at a72a05
2 changes: 2 additions & 0 deletions cmake/OssiaDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if(Git_FOUND AND OSSIA_SUBMODULE_AUTOUPDATE)
compile-time-regular-expressions
Flicks
fmt
magic_enum
mdspan
nano-signal-slot
rapidfuzz-cpp
Expand Down Expand Up @@ -88,6 +89,7 @@ include(deps/concurrentqueue)
include(deps/ctre)
include(deps/flicks)
include(deps/fmt)
include(deps/magic_enum)
include(deps/mdspan)
include(deps/nano-signal-slot)
include(deps/rapidfuzz)
Expand Down
8 changes: 8 additions & 0 deletions cmake/deps/magic_enum.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if(OSSIA_USE_SYSTEM_LIBRARIES)
find_package(magic_enum CONFIG GLOBAL)
endif()

if(NOT TARGET magic_enum::magic_enum)
add_subdirectory("${OSSIA_3RDPARTY_FOLDER}/magic_enum" magic_enum)
endif()

0 comments on commit 30a7e76

Please sign in to comment.