1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-01 07:45:26 +01:00

doc updates; CMake works reasonably well now.

This commit is contained in:
Perttu Ahola
2011-01-08 17:45:26 +02:00
parent 7862a6f68d
commit d435dedb89
3 changed files with 43 additions and 14 deletions

View File

@@ -29,10 +29,32 @@ MESSAGE(STATUS "BUILD_DATE = ${BUILD_DATE}")
# This is done here so that relative search paths are more reasnable
find_package(Irrlicht)
# This way the CMakeLists.txt file in src/ is processed
add_subdirectory(src)
#
# Installation
#
install(FILES "doc/README.txt" DESTINATION "share/minetest/doc")
if(WIN32)
set(DATADIR "data")
set(BINDIR "bin")
set(DOCDIR "doc")
elseif(APPLE)
set(DATADIR "share/minetest")
set(BINDIR "bin")
set(DOCDIR "share/doc/minetest")
elseif(UNIX)
set(DATADIR "share/minetest")
set(BINDIR "bin")
set(DOCDIR "share/doc/minetest")
endif()
install(FILES "doc/README.txt" DESTINATION "${DOCDIR}")
install(FILES "minetest.conf.example" DESTINATION "${DOCDIR}")
#
# Subdirectories
#
add_subdirectory(src)
# CPack