aboutsummaryrefslogtreecommitdiff
path: root/modules/KDE4Macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/KDE4Macros.cmake')
-rw-r--r--modules/KDE4Macros.cmake43
1 files changed, 21 insertions, 22 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index 3a88d033..6b485cba 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -262,7 +262,6 @@ ENDMACRO(KDE4_AUTOMOC)
MACRO(KDE4_INSTALL_ICONS _theme _defaultpath )
- ADD_CUSTOM_TARGET(install_icons )
FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "# icon installations rules\n")
FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "set(CMAKE_BACKWARDS_COMPATIBILITY \"2.2\") \n")
@@ -272,34 +271,34 @@ MACRO(KDE4_INSTALL_ICONS _theme _defaultpath )
STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\2" _group "${_current_ICON}")
STRING(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\3" _name "${_current_ICON}")
# if the string doesn't match the pattern, the result is the full string, so all three have the same content
- if( NOT ${_size} STREQUAL ${_name} )
- set(_icon_GROUP "actions")
+ if( NOT ${_size} STREQUAL ${_name} )
+ set(_icon_GROUP "actions")
- if(${_group} STREQUAL "mime")
- set(_icon_GROUP "mimetypes")
- endif(${_group} STREQUAL "mime")
+ if(${_group} STREQUAL "mime")
+ set(_icon_GROUP "mimetypes")
+ endif(${_group} STREQUAL "mime")
- if(${_group} STREQUAL "filesys")
- set(_icon_GROUP "filesystems")
- endif(${_group} STREQUAL "filesys")
+ if(${_group} STREQUAL "filesys")
+ set(_icon_GROUP "filesystems")
+ endif(${_group} STREQUAL "filesys")
- if(${_group} STREQUAL "device")
- set(_icon_GROUP "devices")
- endif(${_group} STREQUAL "device")
+ if(${_group} STREQUAL "device")
+ set(_icon_GROUP "devices")
+ endif(${_group} STREQUAL "device")
- if(${_group} STREQUAL "app")
- set(_icon_GROUP "apps")
- endif(${_group} STREQUAL "app")
+ if(${_group} STREQUAL "app")
+ set(_icon_GROUP "apps")
+ endif(${_group} STREQUAL "app")
- if(${_group} STREQUAL "action")
- set(_icon_GROUP "actions")
- endif(${_group} STREQUAL "action")
+ if(${_group} STREQUAL "action")
+ set(_icon_GROUP "actions")
+ endif(${_group} STREQUAL "action")
# message(STATUS "icon: ${_current_ICON} size: ${_size} group: ${_group} name: ${_name}" )
- set(_ICON_INSTALL_NAME ${CMAKE_INSTALL_PREFIX}/${_defaultpath}/icons/${_theme}/${_size}x${_size}/${_icon_GROUP}/${_name})
- FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "message(STATUS \"Installing ${_ICON_INSTALL_NAME}\") \n")
- FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "CONFIGURE_FILE( ${_current_ICON} ${_ICON_INSTALL_NAME} COPYONLY) \n")
- endif( NOT ${_size} STREQUAL ${_name} )
+ set(_ICON_INSTALL_NAME ${CMAKE_INSTALL_PREFIX}/${_defaultpath}/icons/${_theme}/${_size}x${_size}/${_icon_GROUP}/${_name})
+ FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "message(STATUS \"Installing ${_ICON_INSTALL_NAME}\") \n")
+ FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/install_icons.cmake "CONFIGURE_FILE( ${_current_ICON} ${_ICON_INSTALL_NAME} COPYONLY) \n")
+ endif( NOT ${_size} STREQUAL ${_name} )
endforeach (_current_ICON)
FILE(GLOB _icons *.svgz)
foreach(_current_ICON ${_icons} )