File tree Expand file tree Collapse file tree 3 files changed +88969
-0
lines changed Expand file tree Collapse file tree 3 files changed +88969
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
6
6
set (CMAKE_CXX_STANDARD 17 )
7
7
set (CMAKE_CXX_STANDARD_REQUIRED ON )
8
8
set (ZIP_SRC thirdparty/zip/src )
9
+ set (MINIAUDIO_SRC thirdparty/miniaudio )
9
10
10
11
option (LIBSCRATCHCPP_BUILD_UNIT_TESTS "Build unit tests" ON )
11
12
option (LIBSCRATCHCPP_NETWORK_SUPPORT "Support for downloading projects" ON )
@@ -61,11 +62,18 @@ add_library(zip SHARED
61
62
)
62
63
include_directories (thirdparty/zip/src )
63
64
65
+ add_library (miniaudio STATIC
66
+ ${MINIAUDIO_SRC} /miniaudio.c
67
+ ${MINIAUDIO_SRC} /miniaudio.h
68
+ )
69
+ include_directories (thirdparty/zip/src )
70
+
64
71
include_directories (thirdparty/spimpl )
65
72
66
73
target_link_libraries (scratchcpp PRIVATE nlohmann_json::nlohmann_json )
67
74
target_link_libraries (scratchcpp PRIVATE utf8cpp )
68
75
target_link_libraries (scratchcpp PRIVATE zip )
76
+ target_link_libraries (scratchcpp PRIVATE miniaudio )
69
77
70
78
if (LIBSCRATCHCPP_NETWORK_SUPPORT )
71
79
include (FetchContent )
You can’t perform that action at this time.
0 commit comments