summaryrefslogtreecommitdiffstats
path: root/src/audio_core/CMakeLists.txt
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-12-28 23:28:35 +0100
committerLiam <byteslice@airmail.cc>2022-12-28 23:29:32 +0100
commitc18cf05a06d9624f67eba2886c91ef5180c872e0 (patch)
tree26cac990572e0c67b93408f132b65c6e5cae507e /src/audio_core/CMakeLists.txt
parentcmake: make libusb optional (diff)
downloadyuzu-c18cf05a06d9624f67eba2886c91ef5180c872e0.tar
yuzu-c18cf05a06d9624f67eba2886c91ef5180c872e0.tar.gz
yuzu-c18cf05a06d9624f67eba2886c91ef5180c872e0.tar.bz2
yuzu-c18cf05a06d9624f67eba2886c91ef5180c872e0.tar.lz
yuzu-c18cf05a06d9624f67eba2886c91ef5180c872e0.tar.xz
yuzu-c18cf05a06d9624f67eba2886c91ef5180c872e0.tar.zst
yuzu-c18cf05a06d9624f67eba2886c91ef5180c872e0.zip
Diffstat (limited to 'src/audio_core/CMakeLists.txt')
-rw-r--r--src/audio_core/CMakeLists.txt19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt
index 420ba62e0..e7b595459 100644
--- a/src/audio_core/CMakeLists.txt
+++ b/src/audio_core/CMakeLists.txt
@@ -187,11 +187,7 @@ add_library(audio_core STATIC
renderer/voice/voice_info.cpp
renderer/voice/voice_info.h
renderer/voice/voice_state.h
- sink/cubeb_sink.cpp
- sink/cubeb_sink.h
sink/null_sink.h
- sink/sdl2_sink.cpp
- sink/sdl2_sink.h
sink/sink.h
sink/sink_details.cpp
sink/sink_details.h
@@ -222,11 +218,22 @@ if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
target_link_libraries(audio_core PRIVATE dynarmic::dynarmic)
endif()
-if(ENABLE_CUBEB)
+if (ENABLE_CUBEB)
+ target_sources(audio_core PRIVATE
+ sink/cubeb_sink.cpp
+ sink/cubeb_sink.h
+ )
+
target_link_libraries(audio_core PRIVATE cubeb::cubeb)
target_compile_definitions(audio_core PRIVATE -DHAVE_CUBEB=1)
endif()
-if(ENABLE_SDL2)
+
+if (ENABLE_SDL2)
+ target_sources(audio_core PRIVATE
+ sink/sdl2_sink.cpp
+ sink/sdl2_sink.h
+ )
+
target_link_libraries(audio_core PRIVATE SDL2::SDL2)
target_compile_definitions(audio_core PRIVATE HAVE_SDL2)
endif()