|
|
@ -81,9 +81,11 @@ ENDIF()
|
|
|
|
IF("${DFHACK_BUILD_ARCH}" STREQUAL "32")
|
|
|
|
IF("${DFHACK_BUILD_ARCH}" STREQUAL "32")
|
|
|
|
SET(DFHACK_BUILD_32 1)
|
|
|
|
SET(DFHACK_BUILD_32 1)
|
|
|
|
SET(DFHACK_BUILD_64 0)
|
|
|
|
SET(DFHACK_BUILD_64 0)
|
|
|
|
|
|
|
|
set(DFHACK_SETARCH "i386")
|
|
|
|
ELSEIF("${DFHACK_BUILD_ARCH}" STREQUAL "64")
|
|
|
|
ELSEIF("${DFHACK_BUILD_ARCH}" STREQUAL "64")
|
|
|
|
SET(DFHACK_BUILD_32 0)
|
|
|
|
SET(DFHACK_BUILD_32 0)
|
|
|
|
SET(DFHACK_BUILD_64 1)
|
|
|
|
SET(DFHACK_BUILD_64 1)
|
|
|
|
|
|
|
|
set(DFHACK_SETARCH "x86_64")
|
|
|
|
ADD_DEFINITIONS(-DDFHACK64)
|
|
|
|
ADD_DEFINITIONS(-DDFHACK64)
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
MESSAGE(SEND_ERROR "Invalid build architecture (should be 32/64): ${DFHACK_BUILD_ARCH}")
|
|
|
|
MESSAGE(SEND_ERROR "Invalid build architecture (should be 32/64): ${DFHACK_BUILD_ARCH}")
|
|
|
@ -334,6 +336,9 @@ IF(BUILD_LIBRARY)
|
|
|
|
install(FILES LICENSE.rst NEWS.rst DESTINATION ${DFHACK_USERDOC_DESTINATION})
|
|
|
|
install(FILES LICENSE.rst NEWS.rst DESTINATION ${DFHACK_USERDOC_DESTINATION})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file(WRITE "${CMAKE_BINARY_DIR}/dfhack_setarch.txt" ${DFHACK_SETARCH})
|
|
|
|
|
|
|
|
install(FILES "${CMAKE_BINARY_DIR}/dfhack_setarch.txt" DESTINATION "${DFHACK_DATA_DESTINATION}")
|
|
|
|
|
|
|
|
|
|
|
|
install(DIRECTORY dfhack-config/ DESTINATION dfhack-config/default)
|
|
|
|
install(DIRECTORY dfhack-config/ DESTINATION dfhack-config/default)
|
|
|
|
|
|
|
|
|
|
|
|
#build the plugins
|
|
|
|
#build the plugins
|
|
|
|