aboutsummaryrefslogtreecommitdiffstats
path: root/testing/telegram-desktop/ffmpeg.cmake
blob: 3f97fcb698e0ac587b5e744b1e6a838eb2ac7418 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL

add_library(external_ffmpeg INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_ffmpeg ALIAS external_ffmpeg)

find_package(PkgConfig REQUIRED)
pkg_check_modules(FFMPEG REQUIRED libavcodec libavformat libavutil libswresample libswscale)

target_include_directories(external_ffmpeg SYSTEM INTERFACE ${FFMPEG_INCLUDE_DIR})
target_link_libraries(external_ffmpeg INTERFACE ${FFMPEG_LIBRARIES})