Skip to content

Commit 3a04733

Browse files
committed
Add miniaudio library
1 parent a2b247d commit 3a04733

File tree

3 files changed

+88969
-0
lines changed

3 files changed

+88969
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
66
set(CMAKE_CXX_STANDARD 17)
77
set(CMAKE_CXX_STANDARD_REQUIRED ON)
88
set(ZIP_SRC thirdparty/zip/src)
9+
set(MINIAUDIO_SRC thirdparty/miniaudio)
910

1011
option(LIBSCRATCHCPP_BUILD_UNIT_TESTS "Build unit tests" ON)
1112
option(LIBSCRATCHCPP_NETWORK_SUPPORT "Support for downloading projects" ON)
@@ -61,11 +62,18 @@ add_library(zip SHARED
6162
)
6263
include_directories(thirdparty/zip/src)
6364

65+
add_library(miniaudio STATIC
66+
${MINIAUDIO_SRC}/miniaudio.c
67+
${MINIAUDIO_SRC}/miniaudio.h
68+
)
69+
include_directories(thirdparty/zip/src)
70+
6471
include_directories(thirdparty/spimpl)
6572

6673
target_link_libraries(scratchcpp PRIVATE nlohmann_json::nlohmann_json)
6774
target_link_libraries(scratchcpp PRIVATE utf8cpp)
6875
target_link_libraries(scratchcpp PRIVATE zip)
76+
target_link_libraries(scratchcpp PRIVATE miniaudio)
6977

7078
if (LIBSCRATCHCPP_NETWORK_SUPPORT)
7179
include(FetchContent)

0 commit comments

Comments
 (0)