plasma_add_plugin macro to simplify plugin installation

This commit is contained in:
Sebastian Kügler 2013-08-09 02:40:49 +02:00
parent f979e1bbcb
commit 9c345e5be5

View File

@ -14,3 +14,9 @@ macro(installPackage dir component)
install(FILES ${dir}/metadata.desktop DESTINATION ${SERVICES_INSTALL_DIR} RENAME plasma-${type}-${component}.desktop)
endmacro()
macro(plasma_add_plugin plugin)
set(plugin_sources ${ARGN} )
add_library(${plugin} MODULE ${plugin_sources} )
set_target_properties(${plugin} PROPERTIES PREFIX "")
endmacro()