From ef3ac5248e7cbbce93a81afce093ef64c7e1f912 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Thu, 27 Jul 2006 11:45:16 +0000 Subject: Scalable hicolor svgz exists svn path=/trunk/KDE/kdelibs/; revision=566879 --- modules/KDE4Macros.cmake | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index acf82128..ded5ac84 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -303,11 +303,20 @@ MACRO (KDE4_INSTALL_ICONS _defaultpath _theme ) # and now the svg icons FILE(GLOB _icons *.svgz) foreach (_current_ICON ${_icons} ) - STRING(REGEX REPLACE "^.*/crsc\\-([a-z]+)\\-(.+\\.svgz)$" "\\1" _group "${_current_ICON}") - STRING(REGEX REPLACE "^.*/crsc\\-([a-z]+)\\-(.+\\.svgz)$" "\\2" _name "${_current_ICON}") - _KDE4_ADD_ICON_INSTALL_RULE(${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake + if( ${_theme} STREQUAL "crystalsvg" ) + STRING(REGEX REPLACE "^.*/crsc\\-([a-z]+)\\-(.+\\.svgz)$" "\\1" _group "${_current_ICON}") + STRING(REGEX REPLACE "^.*/crsc\\-([a-z]+)\\-(.+\\.svgz)$" "\\2" _name "${_current_ICON}") + _KDE4_ADD_ICON_INSTALL_RULE(${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake ${_defaultpath}/${_theme}/scalable ${_group} ${_current_ICON} ${_name}) + endif( ${_theme} STREQUAL "crystalsvg" ) + if( ${_theme} STREQUAL "hicolor" ) + STRING(REGEX REPLACE "^.*/hisc\\-([a-z]+)\\-(.+\\.svgz)$" "\\1" _group "${_current_ICON}") + STRING(REGEX REPLACE "^.*/hisc\\-([a-z]+)\\-(.+\\.svgz)$" "\\2" _name "${_current_ICON}") + _KDE4_ADD_ICON_INSTALL_RULE(${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake + ${_defaultpath}/${_theme}/scalable + ${_group} ${_current_ICON} ${_name}) + endif( ${_theme} STREQUAL "hicolor" ) ENDforeach (_current_ICON) ENDMACRO (KDE4_INSTALL_ICONS) -- cgit v1.2.1