kde-extraapps/thumbnailers/CMakeLists.txt
Ivailo Monev a951c9aae9 generic: require KDE4 version atleast 4.19.0
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-10 21:58:43 +00:00

40 lines
1.1 KiB
CMake

project(kdegraphics-thumbnailers)
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
find_package(KDE4 4.19.0 REQUIRED)
include(KDE4Defaults)
include_directories(${KDE4_INCLUDES})
add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
endif()
macro_optional_find_package(GettextPO)
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"
)
macro_optional_find_package(Taglib)
set_package_properties(Taglib PROPERTIES
DESCRIPTION "Id3 tag reader"
URL "http://developer.kde.org/~wheeler/taglib.html"
PURPOSE "Required to build the audio thumbnailer"
)
macro_optional_find_package(FLAC++)
set_package_properties(FLAC++ PROPERTIES
DESCRIPTION "Free Lossless Audio Codec"
URL "https://xiph.org/flac/"
PURPOSE "Required to build the audio thumbnailer"
)
if(TAGLIB_FOUND AND FLAC_FOUND)
macro_optional_add_subdirectory(audio)
endif()
macro_optional_add_subdirectory(ps)
macro_optional_add_subdirectory(raw)
if(GETTEXTPO_FOUND)
macro_optional_add_subdirectory(po)
endif(GETTEXTPO_FOUND)