Преглед изворни кода

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

Klaas Freitag пре 11 година
родитељ
комит
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()
+