Skip to content

Commit

Permalink
build: add miniaudio lib to cubos
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomsmiranda committed Sep 24, 2024
1 parent 3a4258d commit 48bc4ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@
[submodule "engine/lib/implot"]
path = engine/lib/implot
url = https://github.com/epezent/implot.git
[submodule "core/lib/miniaudio"]
path = core/lib/miniaudio
url = https://github.com/mackron/miniaudio
4 changes: 4 additions & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ target_link_libraries(cubos-core PUBLIC stduuid)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

add_library(miniaudio INTERFACE)
target_include_directories(miniaudio SYSTEM INTERFACE "lib/miniaudio")
target_link_libraries(cubos-core PUBLIC miniaudio)

target_compile_definitions(cubos-core PUBLIC GLM_FORCE_SILENT_WARNINGS) # Needed for compilation to succeed on MSVC
target_link_libraries(cubos-core PUBLIC glm::glm nlohmann_json::nlohmann_json ${CMAKE_DL_LIBS})
target_link_libraries(cubos-core PRIVATE Threads::Threads)
Expand Down
1 change: 1 addition & 0 deletions core/lib/miniaudio
Submodule miniaudio added at 4a5b74

0 comments on commit 48bc4ab

Please sign in to comment.