Changeset View
Changeset View
Standalone View
Standalone View
kcms/formats/CMakeLists.txt
1 | # KI18N Translation Domain for this library | 1 | add_definitions(-DTRANSLATION_DOMAIN=\"kcm5_formats\") | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmformats\") | | |||
3 | 2 | | |||
4 | set(kcm_formats_PART_SRCS | 3 | set(SRCS_formats | ||
5 | kcmformats.cpp | 4 | kcm.cpp | ||
5 | localemodel.cpp | ||||
6 | ) | 6 | ) | ||
7 | kconfig_add_kcfg_files(SRCS_formats formatssettings.kcfgc GENERATE_MOC) | ||||
7 | 8 | | |||
8 | ki18n_wrap_ui(kcm_formats_PART_SRCS kcmformatswidget.ui ) | 9 | add_library(kcm_formats MODULE ${SRCS_formats}) | ||
9 | 10 | | |||
10 | add_library(kcm_formats MODULE ${kcm_formats_PART_SRCS}) | 11 | target_link_libraries(kcm_formats | ||
11 | 12 | KF5::CoreAddons | |||
12 | kcoreaddons_desktop_to_json(kcm_formats formats.desktop SERVICE_TYPES kcmodule.desktop) | 13 | KF5::KCMUtils | ||
13 | 14 | KF5::I18n | |||
14 | target_link_libraries(kcm_formats Qt5::Core Qt5::DBus Qt5::Widgets KF5::I18n KF5::ConfigCore KF5::KCMUtils) | 15 | KF5::QuickAddons | ||
15 | 16 | Qt5::DBus | |||
16 | install(TARGETS kcm_formats DESTINATION ${KDE_INSTALL_PLUGINDIR} ) | 17 | Qt5::Widgets | ||
18 | ) | ||||
17 | 19 | | |||
20 | kcoreaddons_desktop_to_json(kcm_formats "kcm_formats.desktop") | ||||
18 | 21 | | |||
19 | ########### install files ############### | 22 | install(FILES formatssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) | ||
23 | install(FILES kcm_formats.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||||
24 | install(TARGETS kcm_formats DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||||
20 | 25 | | |||
21 | install( FILES formats.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) | 26 | kpackage_install_package(package kcm_formats kcms) |