diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/KDE4Macros.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 21ee0836..f7b5cf27 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -231,6 +231,18 @@ MACRO (KDE4_INSTALL_ICONS _defaultpath _theme ) ${_group} ${_current_ICON} ${_name}) ENDforeach (_current_ICON) + # mng icons + FILE(GLOB _icons *.mng) + foreach (_current_ICON ${_icons} ) + STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.mng)$" "\\1" _size "${_current_ICON}") + STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.mng)$" "\\2" _group "${_current_ICON}") + STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.mng)$" "\\3" _name "${_current_ICON}") + _KDE4_ADD_ICON_INSTALL_RULE(${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake· + ${_defaultpath}/${_theme}/${_size}x${_size}· + ${_group} ${_current_ICON} ${_name}) + ENDforeach (_current_ICON) + + # and now the svg icons FILE(GLOB _icons *.svgz) foreach (_current_ICON ${_icons} ) |