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 baaa941
Show file tree
Hide file tree
Showing 4 changed files with 92,628 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ target_link_libraries(cubos-core PUBLIC stduuid)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

add_subdirectory(lib/miniaudio)
target_link_libraries(cubos-core PRIVATE 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
2 changes: 2 additions & 0 deletions core/lib/miniaudio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_library(miniaudio STATIC miniaudio.cpp)
target_include_directories(miniaudio PUBLIC .)
2 changes: 2 additions & 0 deletions core/lib/miniaudio/miniaudio.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define MINIAUDIO_IMPLEMENTATION
#include "miniaudio.h"
Loading

0 comments on commit baaa941

Please sign in to comment.