Просмотр исходного кода

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

Klaas Freitag 11 лет назад
Родитель
Сommit
9b37357513
2 измененных файлов с 11 добавлено и 0 удалено
  1. 2 0
      shell_integration/CMakeLists.txt
  2. 9 0
      shell_integration/icons/CMakeLists.txt

+ 2 - 0
shell_integration/CMakeLists.txt

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

+ 9 - 0
shell_integration/icons/CMakeLists.txt

@@ -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()
+