diff --git a/CMakeLists.txt b/CMakeLists.txt index ef90165..f539b62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,12 +64,19 @@ elseif(UNIX) # Linux, BSD etc set(BINDIR "bin") set(DOCDIR "share/doc/${PROJECT_NAME}") set(EXAMPLE_CONF_DIR "share/doc/${PROJECT_NAME}") + set(XDG_APPS_DIR "share/applications") + set(ICONDIR "share/icons") endif() install(FILES "README.txt" DESTINATION "${DOCDIR}") install(FILES "doc/changelog.txt" 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 # Be sure to add all relevant definitions above this