Closes #5168 Post-install steps are now optional
This commit is contained in:
parent
c74af1ece7
commit
ebcfa96faa
3 changed files with 72 additions and 11 deletions
|
|
@ -16,3 +16,22 @@ set(ICON_FILES
|
|||
install(FILES ${ICON_FILES} DESTINATION ${ICONS_DEST})
|
||||
install(FILES geary.png DESTINATION share/icons/hicolor/scalable/apps)
|
||||
|
||||
|
||||
# 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
|
||||
"message (STATUS \"Updating icon cache\")"
|
||||
)
|
||||
|
||||
add_custom_target(
|
||||
uninstall-icon-cache
|
||||
DEPENDS
|
||||
uninstall
|
||||
COMMAND
|
||||
gtk-update-icon-cache -t -f ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor
|
||||
)
|
||||
endif ()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue