aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegram-desktop/opus.cmake
blob: 50442399701b64cc046b05f730f4599d8c3409fa (plain) (blame)
1
2
3
4
5
6
7
8
add_library(external_opus INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_opus ALIAS external_opus)

find_package(PkgConfig REQUIRED)
pkg_check_modules(OPUS REQUIRED opus)

target_include_directories(external_opus SYSTEM INTERFACE ${OPUS_INCLUDE_DIRS})
target_link_libraries(external_opus INTERFACE ${OPUS_LIBRARIES})