pics: Provide custom target for generating the macOS iconset
authorManuel Nickschas <>
Sun, 3 Jan 2021 13:43:41 +0000 (14:43 +0100)
committerManuel Nickschas <>
Mon, 4 Jan 2021 07:16:42 +0000 (08:16 +0100)
In preparation for modernizing package generation on macOS that will
replace our custom scripts currently used, provide a custom CMake
target for generating the iconset on demand.

Rename the iconset directory to 'quassel.iconset', otherwise iconutil
refuses to work.

pics/quassel.iconset/icon_128x128.png [moved from pics/iconset/icon_128x128.png with 100% similarity]
pics/quassel.iconset/icon_128x128@2x.png [moved from pics/iconset/icon_128x128@2x.png with 100% similarity]
pics/quassel.iconset/icon_16x16.png [moved from pics/iconset/icon_16x16.png with 100% similarity]
pics/quassel.iconset/icon_16x16@2x.png [moved from pics/iconset/icon_16x16@2x.png with 100% similarity]
pics/quassel.iconset/icon_256x256.png [moved from pics/iconset/icon_256x256.png with 100% similarity]
pics/quassel.iconset/icon_256x256@2x.png [moved from pics/iconset/icon_256x256@2x.png with 100% similarity]
pics/quassel.iconset/icon_32x32.png [moved from pics/iconset/icon_32x32.png with 100% similarity]
pics/quassel.iconset/icon_32x32@2x.png [moved from pics/iconset/icon_32x32@2x.png with 100% similarity]
pics/quassel.iconset/icon_512x512.png [moved from pics/iconset/icon_512x512.png with 100% similarity]
pics/quassel.iconset/icon_512x512@2x.png [moved from pics/iconset/icon_512x512@2x.png with 100% similarity]

index 8759f38..78ae93a 100644 (file)
@@ -10,3 +10,11 @@ if (WANT_MONO OR WANT_QTCLIENT)
+# On macOS, the individual icons should be converted into an iconset
+    COMMENT "Creating iconset for macOS"
+    OUTPUT quassel.icns
+    COMMAND iconutil ARGS -c icns -o ${CMAKE_CURRENT_BINARY_DIR}/quassel.icns ${CMAKE_CURRENT_SOURCE_DIR}/quassel.iconset
+add_custom_target(MacOsIcons DEPENDS quassel.icns)