CMake: Set required FFMpeg libs

This commit is contained in:
FeRD (Frank Dana)
2019-10-08 09:48:04 -04:00
parent beab952702
commit 798dcafb65

View File

@@ -275,7 +275,7 @@ set_target_properties(openshot
################### FFMPEG #####################
# Find FFmpeg libraries (used for video encoding / decoding)
FIND_PACKAGE(FFmpeg REQUIRED)
FIND_PACKAGE(FFmpeg REQUIRED COMPONENTS avcodec avdevice avformat avutil swscale)
foreach(ff_comp avcodec avdevice avformat avfilter avutil postproc swscale swresample avresample)
if(TARGET FFmpeg::${ff_comp})