1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 15:48:48 -05:00

Install icon and .desktop file on Unix systems

This commit is contained in:
Juhani Numminen 2012-01-22 10:19:06 +02:00 committed by Perttu Ahola
parent 0f8b91bfba
commit c8ec711503

View File

@ -64,12 +64,19 @@ elseif(UNIX) # Linux, BSD etc
set(BINDIR "bin") set(BINDIR "bin")
set(DOCDIR "share/doc/${PROJECT_NAME}") set(DOCDIR "share/doc/${PROJECT_NAME}")
set(EXAMPLE_CONF_DIR "share/doc/${PROJECT_NAME}") set(EXAMPLE_CONF_DIR "share/doc/${PROJECT_NAME}")
set(XDG_APPS_DIR "share/applications")
set(ICONDIR "share/icons")
endif() endif()
install(FILES "README.txt" DESTINATION "${DOCDIR}") install(FILES "README.txt" DESTINATION "${DOCDIR}")
install(FILES "doc/changelog.txt" DESTINATION "${DOCDIR}") install(FILES "doc/changelog.txt" DESTINATION "${DOCDIR}")
install(FILES "minetest.conf.example" DESTINATION "${DOCDIR}") install(FILES "minetest.conf.example" DESTINATION "${DOCDIR}")
if(UNIX)
install(FILES "misc/minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
install(FILES "minetest-icon.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps")
endif()
# #
# Subdirectories # Subdirectories
# Be sure to add all relevant definitions above this # Be sure to add all relevant definitions above this