1
0
Fork 0
cmake_helpers/external/ffmpeg/CMakeLists.txt
2019-12-03 19:06:31 +03:00

38 lines
974 B
CMake

# 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)
target_include_directories(external_ffmpeg SYSTEM
INTERFACE
${libs_loc}/ffmpeg
)
set(ffmpeg_lib_loc ${libs_loc}/ffmpeg)
target_link_libraries(external_ffmpeg
INTERFACE
${ffmpeg_lib_loc}/libavformat/libavformat.a
${ffmpeg_lib_loc}/libavcodec/libavcodec.a
${ffmpeg_lib_loc}/libswresample/libswresample.a
${ffmpeg_lib_loc}/libswscale/libswscale.a
${ffmpeg_lib_loc}/libavutil/libavutil.a
)
if (LINUX)
target_link_static_libraries(external_ffmpeg
INTERFACE
va-x11
va-drm
va
vdpau
drm
Xi
Xext
Xfixes
Xrender
)
endif()