2019-02-21 08:50:59 +00:00
|
|
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
2019-02-12 16:31:17 +00:00
|
|
|
set(CPACK_SOURCE_GENERATOR TXZ)
|
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")
|
2019-10-16 16:06:06 +00:00
|
|
|
|
|
|
|
set(CPACK_TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR})
|
|
|
|
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
|
|
|
set(CPACK_TARGET_ARCH "amd64")
|
|
|
|
endif()
|
|
|
|
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_TARGET_ARCH}")
|
|
|
|
|
2019-02-12 16:31:17 +00:00
|
|
|
include(CPack)
|
|
|
|
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
|