From f1878640c8498a73183cab19ac7526f080ccc62d Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Sat, 27 Jul 2013 13:06:38 +0200 Subject: [PATCH] Linux: install all available icon sizes --- src/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 44c7b1f31..504b60740 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -222,9 +222,13 @@ if(NOT BUILD_OWNCLOUD_OSX_BUNDLE) set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") if(NOT WIN32) - install(FILES - ${theme_dir}/colored/${APPLICATION_SHORTNAME}-icon-48.png - DESTINATION share/icons/hicolor/48x48/apps/ RENAME ${APPLICATION_SHORTNAME}.png) + file( GLOB _icons "${theme_dir}/colored/${APPLICATION_SHORTNAME}-icon-*.png" ) + foreach( _file ${_icons} ) + string( REPLACE "${theme_dir}/colored/${APPLICATION_SHORTNAME}-icon-" "" _res ${_file} ) + string( REPLACE ".png" "" _res ${_res} ) + install( FILES ${_file} RENAME ${APPLICATION_SHORTNAME}.png DESTINATION +${CMAKE_INSTALL_DATADIR}/icons/hicolor/${_res}x${_res}/apps ) + endforeach( _file ) endif(NOT WIN32) install(FILES ${mirall_I18N} DESTINATION share/${APPLICATION_SHORTNAME}/i18n)