diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ec8d7757..01d03a574 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,25 +49,29 @@ find_package(Irrlicht) # if(WIN32) - set(SHAREDIR "share") + set(SHAREDIR ".") set(BINDIR "bin") set(DOCDIR "doc") - set(EXAMPLE_CONF_DIR "user") + set(EXAMPLE_CONF_DIR ".") + set(LOCALEDIR "locale") elseif(APPLE) - # random placeholders + # Random placeholders; this isn't usually used and may not work + # See https://github.com/toabi/minetest-mac/ set(SHAREDIR "share/${PROJECT_NAME}") set(BINDIR "bin") set(DOCDIR "share/doc/${PROJECT_NAME}") set(EXAMPLE_CONF_DIR ${DOCDIR}) + set(LOCALEDIR "locale") elseif(UNIX) # Linux, BSD etc if(RUN_IN_PLACE) - set(SHAREDIR "share") + set(SHAREDIR ".") set(BINDIR "bin") set(DOCDIR "doc") - set(MANDIR "share/unix/man") - set(EXAMPLE_CONF_DIR ${DOCDIR}) - set(XDG_APPS_DIR "share/unix/applications") - set(ICONDIR "share/unix/icons") + set(EXAMPLE_CONF_DIR ".") + set(MANDIR "unix/man") + set(XDG_APPS_DIR "unix/applications") + set(ICONDIR "unix/icons") + set(LOCALEDIR "locale") else() set(SHAREDIR "share/${PROJECT_NAME}") set(BINDIR "bin") @@ -76,9 +80,13 @@ elseif(UNIX) # Linux, BSD etc set(EXAMPLE_CONF_DIR ${DOCDIR}) set(XDG_APPS_DIR "share/applications") set(ICONDIR "share/icons") + set(LOCALEDIR "share/locale") endif() endif() +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/builtin" DESTINATION "${SHAREDIR}/") +install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/games/mesetint" DESTINATION "${SHAREDIR}/games/") + install(FILES "README.txt" DESTINATION "${DOCDIR}") install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}") |