2012-04-23 18:54:26 -07:00
|
|
|
set(ICONS_DEST share/geary/icons)
|
|
|
|
|
|
2012-05-01 11:23:52 -07:00
|
|
|
set(ICON_FILES
|
|
|
|
|
application-menu.svg
|
|
|
|
|
mail-inbox.png
|
2012-09-25 12:36:25 -07:00
|
|
|
mail-outbox.svg
|
2012-05-01 11:23:52 -07:00
|
|
|
mail-sent.png
|
|
|
|
|
non-starred-grey.png
|
|
|
|
|
starred.png
|
|
|
|
|
)
|
|
|
|
|
|
2012-09-03 18:46:03 -07:00
|
|
|
set(ICON_FILES_16
|
2012-09-17 16:59:04 -07:00
|
|
|
16x16/format-text-none.svg
|
2012-09-10 19:25:18 -07:00
|
|
|
16x16/mail-archive.svg
|
2012-09-03 18:46:03 -07:00
|
|
|
16x16/tag.svg
|
|
|
|
|
16x16/tag-new.svg
|
2012-09-10 18:50:13 -07:00
|
|
|
16x16/tags.svg
|
2012-09-03 18:46:03 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(ICON_FILES_24
|
2012-09-17 16:59:04 -07:00
|
|
|
24x24/format-text-none.svg
|
2012-09-17 17:49:52 -07:00
|
|
|
24x24/edit-mark.svg
|
2012-09-10 18:57:36 -07:00
|
|
|
24x24/mail-archive.svg
|
2012-09-03 18:46:03 -07:00
|
|
|
24x24/mail-move.svg
|
|
|
|
|
24x24/tag.svg
|
|
|
|
|
24x24/tag-new.svg
|
|
|
|
|
)
|
|
|
|
|
|
2012-05-01 11:23:52 -07:00
|
|
|
install(FILES ${ICON_FILES} DESTINATION ${ICONS_DEST})
|
2012-09-03 18:46:03 -07:00
|
|
|
|
|
|
|
|
install(FILES ${ICON_FILES_16} DESTINATION ${ICONS_DEST}/16x16)
|
|
|
|
|
install(FILES ${ICON_FILES_24} DESTINATION ${ICONS_DEST}/24x24)
|
|
|
|
|
|
|
|
|
|
# Application icon goes in theme directory
|
2012-09-25 12:36:25 -07:00
|
|
|
install(FILES "16x16/geary.svg" DESTINATION share/icons/hicolor/16x16/apps)
|
|
|
|
|
install(FILES "32x32/geary.svg" DESTINATION share/icons/hicolor/32x32/apps)
|
2012-09-03 12:48:48 -07:00
|
|
|
install(FILES "48x48/geary.svg" DESTINATION share/icons/hicolor/48x48/apps)
|
2012-09-25 12:36:25 -07:00
|
|
|
install(FILES "64x64/geary.svg" DESTINATION share/icons/hicolor/64x64/apps)
|
2012-09-03 12:48:48 -07:00
|
|
|
install(FILES "128x128/geary.svg" DESTINATION share/icons/hicolor/128x128/apps)
|
2012-05-01 17:18:43 -07:00
|
|
|
|
|
|
|
|
# Optional: update icon cache at install time.
|
|
|
|
|
if (ICON_UPDATE)
|
|
|
|
|
install(
|
|
|
|
|
CODE
|
|
|
|
|
"execute_process (COMMAND gtk-update-icon-cache -t -f ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)"
|
|
|
|
|
CODE
|
2012-10-08 17:17:43 -07:00
|
|
|
"message (STATUS \"Updated icon cache in ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor\")"
|
2012-05-01 17:18:43 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_custom_target(
|
|
|
|
|
uninstall-icon-cache
|
|
|
|
|
COMMAND
|
|
|
|
|
gtk-update-icon-cache -t -f ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor
|
2012-10-08 17:17:43 -07:00
|
|
|
COMMENT
|
|
|
|
|
"Updated icon cache after uninstall in ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor"
|
2012-05-01 17:18:43 -07:00
|
|
|
)
|
2012-09-14 09:54:52 -07:00
|
|
|
|
2012-10-08 17:17:43 -07:00
|
|
|
add_dependencies(post-uninstall uninstall-icon-cache)
|
2012-05-01 17:18:43 -07:00
|
|
|
endif ()
|
|
|
|
|
|