2018-02-26 07:11:54 +01:00
|
|
|
# TODO: adapt "org.kde.plasma" here & elsewhere if needed (see README)
|
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"plasma_applet_org.kde.plasma.%{APPNAMELC}\")
|
2015-11-30 14:58:35 +01:00
|
|
|
|
|
|
|
set(%{APPNAMELC}_SRCS
|
|
|
|
%{APPNAMELC}.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(plasma_applet_%{APPNAMELC} MODULE ${%{APPNAMELC}_SRCS})
|
|
|
|
|
2015-12-10 00:10:41 +01:00
|
|
|
kcoreaddons_desktop_to_json(plasma_applet_%{APPNAMELC} package/metadata.desktop SERVICE_TYPES plasma-applet.desktop)
|
2015-11-30 14:58:35 +01:00
|
|
|
|
|
|
|
target_link_libraries(plasma_applet_%{APPNAMELC}
|
|
|
|
Qt5::Gui
|
|
|
|
KF5::Plasma
|
|
|
|
KF5::I18n)
|
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS plasma_applet_%{APPNAMELC} DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets)
|
|
|
|
|
2018-02-26 07:11:54 +01:00
|
|
|
plasma_install_package(package org.kde.plasma.%{APPNAMELC})
|