From 734ffc9f715a83372dc88c943b1252dd78da4754 Mon Sep 17 00:00:00 2001 From: Morc - Richard Gráčik Date: Sat, 17 Jun 2023 10:29:07 +0200 Subject: add CoreFoundation, CoreAudio and AudioToolbox to CMakeLists required to make audio working on macOS --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4fdf7a..de97c32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -150,6 +150,13 @@ if (ENABLE_VOICE) target_link_libraries(abaddon PkgConfig::libsodium) target_link_libraries(abaddon ${CMAKE_DL_LIBS}) + + if(APPLE) + target_link_libraries(abaddon "-framework CoreFoundation") + target_link_libraries(abaddon "-framework CoreAudio") + target_link_libraries(abaddon "-framework AudioToolbox") + endif() + endif () if (${ENABLE_NOTIFICATION_SOUNDS}) -- cgit v1.2.3