2014-11-27 14:05:13 +00:00
|
|
|
project(kdegraphics-thumbnailers)
|
|
|
|
|
2016-04-06 12:26:19 +00:00
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
2022-05-12 16:39:18 +03:00
|
|
|
find_package(KDE4 4.22.0 REQUIRED)
|
2016-04-06 12:26:19 +00:00
|
|
|
include(KDE4Defaults)
|
|
|
|
include_directories(${KDE4_INCLUDES})
|
|
|
|
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
|
|
|
|
endif()
|
2014-11-27 14:05:13 +00:00
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(GettextPO)
|
2015-10-29 10:10:58 +02:00
|
|
|
set_package_properties(GettextPO PROPERTIES
|
|
|
|
DESCRIPTION "A library for processing PO files"
|
|
|
|
URL "www.gnu.org/software/gettext"
|
|
|
|
PURPOSE "Required to build the PO thumbnailer"
|
|
|
|
)
|
2014-11-27 14:05:13 +00:00
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(Taglib 1.4)
|
2019-07-11 19:06:31 +00:00
|
|
|
set_package_properties(Taglib PROPERTIES
|
|
|
|
DESCRIPTION "Id3 tag reader"
|
2020-02-20 23:33:47 +02:00
|
|
|
URL "https://taglib.org/"
|
2019-07-11 19:06:31 +00:00
|
|
|
PURPOSE "Required to build the audio thumbnailer"
|
|
|
|
)
|
|
|
|
|
2022-10-02 13:35:46 +03:00
|
|
|
kde4_optional_find_package(FFmpegThumbnailer)
|
2020-10-04 09:25:29 +03:00
|
|
|
set_package_properties(FFmpegThumbnailer PROPERTIES
|
|
|
|
DESCRIPTION "Lightweight video thumbnailer that can be used by file managers to create thumbnails for video files"
|
|
|
|
URL "https://github.com/dirkvdb/ffmpegthumbnailer"
|
|
|
|
PURPOSE "Required to build the video thumbnailer"
|
|
|
|
)
|
|
|
|
|
2021-07-11 11:39:36 +03:00
|
|
|
find_program(GHOSTSCRIPT_EXECUTABLE NAMES gs)
|
|
|
|
add_feature_info(thumbnailer_gs
|
|
|
|
GHOSTSCRIPT_EXECUTABLE
|
|
|
|
"PostScript, PDF and DvI support in thumbnailer"
|
|
|
|
)
|
|
|
|
|
2021-03-26 21:58:25 +02:00
|
|
|
add_subdirectory(ps)
|
|
|
|
|
2021-08-08 07:26:25 +03:00
|
|
|
if(TAGLIB_FOUND)
|
2021-03-26 21:58:25 +02:00
|
|
|
add_subdirectory(audio)
|
2019-07-11 19:06:31 +00:00
|
|
|
endif()
|
2020-10-04 09:25:29 +03:00
|
|
|
|
2015-01-24 20:43:27 +00:00
|
|
|
if(GETTEXTPO_FOUND)
|
2021-03-26 21:58:25 +02:00
|
|
|
add_subdirectory(po)
|
|
|
|
endif()
|
2015-01-24 20:43:27 +00:00
|
|
|
|
2020-10-04 09:25:29 +03:00
|
|
|
if(FFMPEGTHUMBNAILER_FOUND)
|
2021-03-26 21:58:25 +02:00
|
|
|
add_subdirectory(ffmpegthumbs)
|
2020-10-04 09:25:29 +03:00
|
|
|
endif()
|