project(kde-thumbnailer-po)
cmake_minimum_required(VERSION 2.6)

find_package(GettextPO REQUIRED)

add_definitions(${QT_DEFINITIONS})

set(pothumbnail_SRCS pocreator.cpp)

ki18n_wrap_ui(pothumbnail_SRCS pocreatorform.ui)

kconfig_add_kcfg_files(pothumbnail_SRCS pocreatorsettings.kcfgc)

add_library(pothumbnail MODULE ${pothumbnail_SRCS})
target_link_libraries(pothumbnail
    Qt5::Widgets
    KF5::I18n
    KF5::ConfigGui
    KF5::KIOWidgets
    ${GETTEXTPO_LIBRARY}
)

install(TARGETS pothumbnail DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES pocreatorsettings.kcfg DESTINATION ${KCFG_INSTALL_DIR})
install(FILES pothumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR})
