#include <functional>
#include <memory>
#include <string>
+--- giada.orig/CMakeLists.txt
++++ giada/CMakeLists.txt
+@@ -196,7 +196,6 @@
+ src/utils/fs.cpp
+ src/utils/ver.cpp
+ src/utils/string.cpp
+- src/deps/rtaudio/RtAudio.cpp
+ src/deps/mcl-audio-buffer/src/audioBuffer.cpp)
+
+ list(APPEND PREPROCESSOR_DEFS)
+@@ -286,6 +285,15 @@
+ endif()
+ endif()
+
++if (PkgConfig_FOUND)
++ pkg_check_modules(RtAudio IMPORTED_TARGET rtaudio)
++ if (RtAudio_FOUND)
++ list(APPEND LIBRARIES PkgConfig::RtAudio)
++ message("RtAudio library found")
++ endif()
++endif()
++
++
+ if (NOT RtMidi_FOUND)
+ # Fallback to find_library mode (in case rtmidi is too old).
+ find_library(LIBRARY_RTMIDI NAMES rtmidi)
+@@ -581,4 +589,4 @@
+ set_target_properties(giada PROPERTIES
+ XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME YES)
+
+-endif()
+\ No newline at end of file
++endif()