diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-02-17 17:23:48 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-02-17 17:23:48 +0000 |
commit | f4dc9185d276557ffec05c6287aa2b9383f558c2 (patch) | |
tree | e306df65830908f3546e2a8dc3a2e6179449e7ef /modules/KDE4Macros.cmake | |
parent | e0f9d000f61a36aac107ff17a4e3838aa82ed770 (diff) | |
download | extra-cmake-modules-f4dc9185d276557ffec05c6287aa2b9383f558c2.tar.gz extra-cmake-modules-f4dc9185d276557ffec05c6287aa2b9383f558c2.tar.bz2 |
-give kdelibs a project name ("kdelibs")
-remove the unused "install_icon" targets
-mark more variables as "ADVANCED"
Alex
svn path=/trunk/KDE/kdelibs/; revision=510649
Diffstat (limited to 'modules/KDE4Macros.cmake')
-rw-r--r-- | modules/KDE4Macros.cmake | 43 |
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} ) |