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