diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ef9016526..feefa58c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,13 +63,22 @@ elseif(UNIX) # Linux, BSD etc set(DATADIR "share/${PROJECT_NAME}") set(BINDIR "bin") set(DOCDIR "share/doc/${PROJECT_NAME}") + set(MANDIR "share/man") 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 "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6") + 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 |