plasma-framework/templates/cpp-plasmoid/src/CMakeLists.txt
Marco Martin 46789eb1c8 add a couple of plasmoid templates for kapptemplate/kdevelop
this makes easier to develop a new plasmoid,
 there are two templates:
one is for a pure QML plasmoid
the othe rone has a C++ part
2015-11-30 15:02:43 +01:00

20 lines
574 B
CMake

add_definitions(-DTRANSLATION_DOMAIN=\"plasma_applet_org.kde.%{APPNAMELC}\")
set(%{APPNAMELC}_SRCS
%{APPNAMELC}.cpp
)
add_library(plasma_applet_%{APPNAMELC} MODULE ${%{APPNAMELC}_SRCS})
kcoreaddons_desktop_to_json(plasma_applet_%{APPNAMELC} package/metadata.desktop)
target_link_libraries(plasma_applet_%{APPNAMELC}
Qt5::Gui
KF5::Plasma
KF5::I18n)
install(TARGETS plasma_applet_%{APPNAMELC} DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets)
plasma_install_package(package org.kde.%{APPNAMELC})