diff --git a/.gitmodules b/.gitmodules index 3b07c8b4eb..89f9e604cb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 6df7c58e68..4150145166 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -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) diff --git a/core/lib/miniaudio b/core/lib/miniaudio new file mode 160000 index 0000000000..4a5b74bef0 --- /dev/null +++ b/core/lib/miniaudio @@ -0,0 +1 @@ +Subproject commit 4a5b74bef029b3592c54b6048650ee5f972c1a48