mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix to be able to build from dir different than source dir
This commit is contained in:
parent
120f02e20b
commit
046534e14b
@ -167,15 +167,20 @@ endif()
|
|||||||
|
|
||||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/fonts" DESTINATION "${SHAREDIR}")
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/fonts" DESTINATION "${SHAREDIR}")
|
||||||
|
|
||||||
install(FILES "README.txt" DESTINATION "${DOCDIR}")
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/README.txt" DESTINATION "${DOCDIR}")
|
||||||
install(FILES "doc/lua_api.txt" DESTINATION "${DOCDIR}")
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/doc/lua_api.txt" DESTINATION "${DOCDIR}")
|
||||||
install(FILES "doc/mapformat.txt" DESTINATION "${DOCDIR}")
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/doc/mapformat.txt" DESTINATION "${DOCDIR}")
|
||||||
install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
|
install(FILES
|
||||||
install(FILES "misc/minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
|
"${CMAKE_CURRENT_SOURCE_DIR}/doc/minetest.6"
|
||||||
install(FILES "misc/minetest-icon.svg" DESTINATION "${ICONDIR}/hicolor/scalable/apps")
|
"${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()
|
endif()
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -371,7 +371,7 @@ if(USE_CURL)
|
|||||||
)
|
)
|
||||||
endif(USE_CURL)
|
endif(USE_CURL)
|
||||||
|
|
||||||
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_SOURCE_DIR}/bin")
|
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
||||||
|
|
||||||
if(BUILD_CLIENT)
|
if(BUILD_CLIENT)
|
||||||
add_executable(${PROJECT_NAME} ${minetest_SRCS})
|
add_executable(${PROJECT_NAME} ${minetest_SRCS})
|
||||||
|
Loading…
Reference in New Issue
Block a user