|
|
@ -248,11 +248,14 @@ if (BUILD_DOCS)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# Packaging with CPack!
|
|
|
|
# Packaging with CPack!
|
|
|
|
|
|
|
|
SET(DFHACK_PACKAGE_SUFFIX "")
|
|
|
|
IF(UNIX)
|
|
|
|
IF(UNIX)
|
|
|
|
if(APPLE)
|
|
|
|
if(APPLE)
|
|
|
|
SET(CPACK_GENERATOR "ZIP;TBZ2")
|
|
|
|
SET(CPACK_GENERATOR "ZIP;TBZ2")
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
SET(CPACK_GENERATOR "TBZ2")
|
|
|
|
SET(CPACK_GENERATOR "TBZ2")
|
|
|
|
|
|
|
|
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
|
|
|
|
|
|
|
|
SET(DFHACK_PACKAGE_SUFFIX "-gcc-${GCC_VERSION}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
ELSEIF(WIN32)
|
|
|
|
ELSEIF(WIN32)
|
|
|
|
SET(CPACK_GENERATOR "ZIP")
|
|
|
|
SET(CPACK_GENERATOR "ZIP")
|
|
|
@ -263,7 +266,7 @@ IF(APPLE)
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
set(DFHACK_PACKAGE_PLATFORM_NAME ${CMAKE_SYSTEM_NAME})
|
|
|
|
set(DFHACK_PACKAGE_PLATFORM_NAME ${CMAKE_SYSTEM_NAME})
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
set(CPACK_PACKAGE_FILE_NAME "dfhack-${DFHACK_VERSION}-${DFHACK_PACKAGE_PLATFORM_NAME}")
|
|
|
|
set(CPACK_PACKAGE_FILE_NAME "dfhack-${DFHACK_VERSION}-${DFHACK_PACKAGE_PLATFORM_NAME}${DFHACK_PACKAGE_SUFFIX}")
|
|
|
|
INCLUDE(CPack)
|
|
|
|
INCLUDE(CPack)
|
|
|
|
|
|
|
|
|
|
|
|
#INCLUDE(FindSphinx.cmake)
|
|
|
|
#INCLUDE(FindSphinx.cmake)
|
|
|
|