Use KPackage to install Plasma Packages

Plasma packages are essentially kpackages, so use the macros from KPackage
to install Plasma packages.
This allows to reuse the facilities set up there.

REVIEW: 128579
This commit is contained in:
Aleix Pol 2016-08-03 13:05:50 +02:00
parent 812340ea2f
commit 333bdd7fb3

View File

@ -29,12 +29,8 @@ macro(plasma_install_package dir component)
if(NOT type)
set(type applet)
endif()
install(DIRECTORY ${dir}/ DESTINATION ${PLASMA_DATA_INSTALL_DIR}/${root}/${component}
PATTERN CMakeLists.txt EXCLUDE
PATTERN README.txt EXCLUDE
PATTERN Messages.sh EXCLUDE
PATTERN dummydata EXCLUDE)
kpackage_install_package(${dir} ${component} ${root} ${PLASMA_RELATIVE_DATA_INSTALL_DIR})
install(FILES ${dir}/metadata.desktop DESTINATION ${SERVICES_INSTALL_DIR} RENAME plasma-${type}-${component}.desktop)
endmacro()