2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-23 10:47:11 +00:00
tdesktop/Telegram/cmake/lib_ffmpeg.cmake

35 lines
883 B
CMake
Raw Normal View History

2019-11-21 14:56:17 +03:00
# This file is part of Telegram Desktop,
# the official desktop application for the Telegram messaging service.
#
# For license and copyright information please follow this link:
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
2019-11-08 15:02:15 +03:00
add_library(lib_ffmpeg OBJECT)
2019-11-21 17:41:11 +03:00
add_library(desktop-app::lib_ffmpeg ALIAS lib_ffmpeg)
init_target(lib_ffmpeg)
2019-11-08 15:02:15 +03:00
2019-12-03 19:11:03 +03:00
nice_target_sources(lib_ffmpeg ${src_loc}
2019-11-08 15:02:15 +03:00
PRIVATE
ffmpeg/ffmpeg_frame_generator.cpp
ffmpeg/ffmpeg_frame_generator.h
ffmpeg/ffmpeg_bytes_io_wrap.h
2019-11-08 15:02:15 +03:00
ffmpeg/ffmpeg_utility.cpp
ffmpeg/ffmpeg_utility.h
)
target_include_directories(lib_ffmpeg
PUBLIC
${src_loc}
)
target_link_libraries(lib_ffmpeg
PUBLIC
2019-11-21 17:41:11 +03:00
desktop-app::lib_base
desktop-app::lib_ui
2019-12-03 19:11:03 +03:00
desktop-app::external_ffmpeg
2019-11-08 15:02:15 +03:00
)
if (DESKTOP_APP_SPECIAL_TARGET)
target_compile_definitions(lib_ffmpeg PRIVATE LIB_FFMPEG_USE_QT_PRIVATE_API)
endif()