blob: 2d065734fdf0050599cdd75f5273b6beb154edb3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
--- CMakeLists.txt.orig 2019-10-03 19:51:17 UTC
+++ CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.12)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
@@ -92,6 +92,15 @@ add_library(libffmpegthumbnailerobj OBJECT
libffmpegthumbnailer/filmstripfilter.cpp
)
+target_link_libraries(libffmpegthumbnailerobj
+ FFmpeg::avformat
+ FFmpeg::avcodec
+ FFmpeg::avutil
+ FFmpeg::avfilter
+ $<$<BOOL:${HAVE_JPEG}>:${JPEG_LIBRARIES}>
+ $<$<BOOL:${HAVE_PNG}>:PNG::PNG>
+)
+
# we use our own deprecated struct menbers, so disable the warning about it
set_source_files_properties(libffmpegthumbnailer/videothumbnailerc.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
@@ -118,12 +127,7 @@ set (FFMPEGTHUMBNAILER_SOVERSION_AGE 1)
if (ENABLE_STATIC)
add_library(libffmpegthumbnailerstatic STATIC $<TARGET_OBJECTS:libffmpegthumbnailerobj>)
target_link_libraries(libffmpegthumbnailerstatic
- FFmpeg::avformat
- FFmpeg::avcodec
- FFmpeg::avutil
- FFmpeg::avfilter
- $<$<BOOL:${HAVE_JPEG}>:${JPEG_LIBRARIES}>
- $<$<BOOL:${HAVE_PNG}>:PNG::PNG>
+ libffmpegthumbnailerobj
$<$<BOOL:${ENABLE_GIO}>:${CMAKE_DL_LIBS}>
)
@@ -140,12 +144,7 @@ endif ()
if (ENABLE_SHARED)
add_library(libffmpegthumbnailer SHARED $<TARGET_OBJECTS:libffmpegthumbnailerobj>)
target_link_libraries(libffmpegthumbnailer
- FFmpeg::avformat
- FFmpeg::avcodec
- FFmpeg::avutil
- FFmpeg::avfilter
- $<$<BOOL:${HAVE_JPEG}>:${JPEG_LIBRARIES}>
- $<$<BOOL:${HAVE_PNG}>:PNG::PNG>
+ libffmpegthumbnailerobj
)
set_target_properties(libffmpegthumbnailer PROPERTIES
|