aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt19
1 files changed, 12 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ff44e9c26..124e68ddd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -167,15 +167,20 @@ endif()
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/fonts" DESTINATION "${SHAREDIR}")
-install(FILES "README.txt" DESTINATION "${DOCDIR}")
-install(FILES "doc/lua_api.txt" DESTINATION "${DOCDIR}")
-install(FILES "doc/mapformat.txt" DESTINATION "${DOCDIR}")
-install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
+install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/README.txt" DESTINATION "${DOCDIR}")
+install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/doc/lua_api.txt" DESTINATION "${DOCDIR}")
+install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/doc/mapformat.txt" DESTINATION "${DOCDIR}")
+install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
if(UNIX)
- install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
- install(FILES "misc/minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
- install(FILES "misc/minetest-icon.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps")
+ install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/doc/minetest.6"
+ "${CMAKE_CURRENT_SOURCE_DIR}/doc/minetestserver.6"
+ DESTINATION "${MANDIR}/man6")
+ install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/misc/minetest.desktop"
+ DESTINATION "${XDG_APPS_DIR}")
+ install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/misc/minetest-icon.svg"
+ DESTINATION "${ICONDIR}/hicolor/scalable/apps")
endif()
#