Changeset View
Changeset View
Standalone View
Standalone View
kcms/translations/CMakeLists.txt
1 | include(ECMQMLModules) | ||||
---|---|---|---|---|---|
2 | ecm_find_qmlmodule(org.kde.plasma.core 2.0) | ||||
3 | | ||||
4 | # KI18N Translation Domain for this library. | ||||
1 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmtranslations\") | 5 | add_definitions(-DTRANSLATION_DOMAIN=\"kcmtranslations\") | ||
2 | 6 | | |||
3 | set(kcm_translations_PART_SRCS kcmtranslations.cpp) | 7 | ########### next target ############### | ||
4 | 8 | | |||
5 | ki18n_wrap_ui(kcm_translations_PART_SRCS kcmtranslationswidget.ui) | 9 | set(kcm_translations_PART_SRCS translations.cpp translationsmodel.cpp) | ||
6 | 10 | | |||
7 | add_library(kcm_translations ${kcm_translations_PART_SRCS}) | 11 | add_library(kcm_translations MODULE ${kcm_translations_PART_SRCS}) | ||
8 | 12 | | |||
9 | target_link_libraries(kcm_translations | 13 | target_link_libraries(kcm_translations | ||
10 | Qt5::Widgets | | |||
11 | KF5::WidgetsAddons | | |||
12 | KF5::KCMUtils | | |||
13 | KF5::I18n | 14 | KF5::I18n | ||
15 | KF5::KCMUtils | ||||
16 | KF5::QuickAddons | ||||
14 | ) | 17 | ) | ||
15 | 18 | | |||
19 | kcoreaddons_desktop_to_json(kcm_translations "kcm_translations.desktop") | ||||
20 | | ||||
16 | ########### install files ############### | 21 | ########### install files ############### | ||
17 | 22 | | |||
18 | install(TARGETS kcm_translations DESTINATION ${KDE_INSTALL_PLUGINDIR}) | 23 | install(TARGETS kcm_translations DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms) | ||
19 | install(FILES translations.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | 24 | install(FILES kcm_translations.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) | ||
25 | kpackage_install_package(package kcm_translations kcms) | ||||
26 | |