summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMorc - Richard Gráčik <r.gracik@gmail.com>2023-06-17 10:29:07 +0200
committerGitHub <noreply@github.com>2023-06-17 10:29:07 +0200
commit734ffc9f715a83372dc88c943b1252dd78da4754 (patch)
tree82135250a925ff4bee7afb8a5ed33f39fc693c45 /CMakeLists.txt
parent5b9a9bbc9ab2796074b38378f9d98d10c422c6d4 (diff)
downloadabaddon-portaudio-734ffc9f715a83372dc88c943b1252dd78da4754.tar.gz
abaddon-portaudio-734ffc9f715a83372dc88c943b1252dd78da4754.zip
add CoreFoundation, CoreAudio and AudioToolbox to CMakeLists
required to make audio working on macOS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
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})