~neon/kdesdk-thumbnailers/master

60 by Friedrich W. H. Kossebau
Move TRANSLATION_DOMAIN definition to subdir where it is valid
1
add_definitions(-DTRANSLATION_DOMAIN="pothumbnail")
2
85 by Nicolas Fella
Port thumbnailer to new install location and embed metadata
3
kcoreaddons_add_plugin(pothumbnail INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/thumbcreator")
65 by Friedrich W. H. Kossebau
Use more target-centric cmake code
4
5
target_sources(pothumbnail PRIVATE
6
    pocreator.cpp
7
)
8
9
ki18n_wrap_ui(pothumbnail pocreatorform.ui)
10
11
kconfig_add_kcfg_files(pothumbnail pocreatorsettings.kcfgc)
12
24.1.7 by Albert Astals Cid
po -> po_thumbnailer
13
target_link_libraries(pothumbnail
96 by Nicolas Fella
Adapt build system to Qt6
14
    Qt::Widgets
140 by Nicolas Fella
Make it build against KF6
15
    KF${QT_MAJOR_VERSION}::I18n
16
    KF${QT_MAJOR_VERSION}::ConfigGui
17
    KF${QT_MAJOR_VERSION}::KIOGui
18
    KF${QT_MAJOR_VERSION}::WidgetsAddons
69 by Friedrich W. H. Kossebau
Use imported target for linking gettextpo
19
    GettextPO::GettextPO
24.1.7 by Albert Astals Cid
po -> po_thumbnailer
20
)
21
66 by Friedrich W. H. Kossebau
Use non-deprecated KDEInstallDirs variables
22
install(FILES pocreatorsettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})