diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-08-31 01:51:02 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-08-31 01:51:02 -0400 |
commit | 0fa33915da6255cf7460758197eaea7e43353543 (patch) | |
tree | 15a92a3aae2cd2647c24ce4c44f1aaca01fcf422 /CMakeLists.txt | |
parent | 634f51fb4117c0870399e73560ac313d68d281e8 (diff) | |
download | abaddon-portaudio-0fa33915da6255cf7460758197eaea7e43353543.tar.gz abaddon-portaudio-0fa33915da6255cf7460758197eaea7e43353543.zip |
rudimentary voice implementation
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d5ee2d..e779686 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,5 +109,14 @@ if (USE_LIBHANDY) endif () if (ENABLE_VOICE) + target_compile_definitions(abaddon PRIVATE WITH_VOICE) + + find_package(PkgConfig) + target_include_directories(abaddon PUBLIC subprojects/miniaudio) + pkg_check_modules(Opus REQUIRED IMPORTED_TARGET opus) + target_link_libraries(abaddon PkgConfig::Opus) + + pkg_check_modules(libsodium REQUIRED IMPORTED_TARGET libsodium) + target_link_libraries(abaddon PkgConfig::libsodium) endif () |