Warning, /plasma/libplasma/PlasmaMacros.cmake is written in an unsupported language. File is not indexed.

0001 set(PLASMA_RELATIVE_DATA_INSTALL_DIR "plasma")
0002 set(PLASMA_DATA_INSTALL_DIR "${KDE_INSTALL_DATADIR}/${PLASMA_RELATIVE_DATA_INSTALL_DIR}")
0003 
0004 # plasma_install_package(path componentname [root] [type])
0005 #
0006 # Installs a Plasma package to the system path
0007 # @arg path The source path to install from, location of metadata.desktop
0008 # @arg componentname The plugin name of the component, corresponding to the
0009 #       X-KDE-PluginInfo-Name key in metadata.desktop
0010 # @arg root The subdirectory to install to, default: plasmoids
0011 # @arg type The type, default to applet, or applet, package, containment,
0012 #       wallpaper, shell, lookandfeel, etc.
0013 # @see Types column in kpackagetool6 --list-types
0014 #
0015 # Examples:
0016 # plasma_install_package(mywidget org.kde.plasma.mywidget) # installs an applet
0017 # plasma_install_package(declarativetoolbox org.kde.toolbox packages package) # installs a generic package
0018 #
0019 macro(plasma_install_package dir component)
0020    set(root ${ARGV2})
0021    set(type ${ARGV3})
0022    if(NOT root)
0023       set(root plasmoids)
0024    endif()
0025    if(NOT type)
0026       set(type applet)
0027    endif()
0028 
0029    kpackage_install_package(${dir} ${component} ${root} ${PLASMA_RELATIVE_DATA_INSTALL_DIR} NO_DEPRECATED_WARNING)
0030 endmacro()