31 lines
804 B
CMake
31 lines
804 B
CMake
#
|
|
# Install geary.desktop
|
|
#
|
|
install(FILES geary.desktop DESTINATION /usr/share/applications)
|
|
if (LIBINDICATE_FOUND)
|
|
install(FILES geary DESTINATION /usr/share/indicators/messages/applications)
|
|
endif ()
|
|
|
|
# Optional: run update-desktop-database at install time.
|
|
# (This has to happen after the geary.desktop file is installed.)
|
|
if (DESKTOP_UPDATE)
|
|
install(
|
|
CODE
|
|
"execute_process (COMMAND update-desktop-database)"
|
|
CODE
|
|
"message (STATUS \"Updating desktop database\")"
|
|
)
|
|
|
|
add_custom_target(
|
|
uninstall-desktop-update
|
|
COMMAND
|
|
update-desktop-database
|
|
)
|
|
|
|
add_dependencies(uninstall uninstall-desktop-update)
|
|
else ()
|
|
install(
|
|
CODE "message (STATUS \"Not updating desktop database\")"
|
|
)
|
|
endif ()
|
|
|