CMake: Install icons under linux.

This commit is contained in:
Klaas Freitag 2014-08-04 17:20:57 +02:00
parent f983264b5d
commit a0a5a49d7b

View file

@ -7,3 +7,15 @@ if( BUILD_OWNCLOUD_OSX_BUNDLE AND NOT BUILD_LIBRARIES_ONLY )
install(FILES ${mac_icons} DESTINATION ${ICON_DIR})
endif()
if( UNIX AND NOT APPLE )
SET(ICON_DIR ${DATADIR}/icons/hicolor)
FOREACH(size 128x128 16x16 256x256 32x32 48x48 64x64 72x72)
install(DIRECTORY ${size} DESTINATION ${ICON_DIR}/${size}/apps FILES_MATCHING PATTERN "*.png")
ENDFOREACH(size)
endif()