cmake: Add the icons path to cmake, install the Mac icons properly.

This commit is contained in:
Klaas Freitag 2014-08-01 15:30:13 +02:00
parent 23269c9a08
commit 9b37357513
2 changed files with 11 additions and 0 deletions

View file

@ -1,2 +1,4 @@
add_subdirectory(testclient) add_subdirectory(testclient)
add_subdirectory(MacOSX) add_subdirectory(MacOSX)
add_subdirectory(icons)

View file

@ -0,0 +1,9 @@
# Install the Mac icon container into the Mac Bundle.
if( BUILD_OWNCLOUD_OSX_BUNDLE AND NOT BUILD_LIBRARIES_ONLY )
set (ICON_DIR ${OWNCLOUD_OSX_BUNDLE}/Contents/Resources/icons)
file(GLOB mac_icons "icns/*icns")
install(FILES ${mac_icons} DESTINATION ${ICON_DIR})
endif()