diff options
author | Laurent Montel <montel@kde.org> | 2006-07-27 11:45:16 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2006-07-27 11:45:16 +0000 |
commit | ef3ac5248e7cbbce93a81afce093ef64c7e1f912 (patch) | |
tree | b422f290bfcf6cf00f895df00e4b667a9b992d1d /modules/KDE4Macros.cmake | |
parent | 822dbbc7c67fb443f0f1bad4c2a906372679a503 (diff) | |
download | extra-cmake-modules-ef3ac5248e7cbbce93a81afce093ef64c7e1f912.tar.gz extra-cmake-modules-ef3ac5248e7cbbce93a81afce093ef64c7e1f912.tar.bz2 |
Scalable hicolor svgz exists
svn path=/trunk/KDE/kdelibs/; revision=566879
Diffstat (limited to 'modules/KDE4Macros.cmake')
-rw-r--r-- | modules/KDE4Macros.cmake | 15 |
1 files 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) |