aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2006-07-21 07:37:18 +0000
committerLaurent Montel <montel@kde.org>2006-07-21 07:37:18 +0000
commitfdbca427fa50d3533540080efb0f38bf2237f8ee (patch)
tree1da3f2902344b5dcab0844f9bef72f2f5f496e9e
parent132d93f0d7376e149876bcfa189c5635f5360ae4 (diff)
downloadextra-cmake-modules-fdbca427fa50d3533540080efb0f38bf2237f8ee.tar.gz
extra-cmake-modules-fdbca427fa50d3533540080efb0f38bf2237f8ee.tar.bz2
We have some mng icons
(kopete has some mng icons which must be installed as png icons) svn path=/trunk/KDE/kdelibs/; revision=564747
-rw-r--r--modules/KDE4Macros.cmake12
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} )