cmlib/CMLibCPackSources.cmake

14 lines
499 B
CMake
Raw Normal View History

set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
2019-02-12 16:31:17 +00:00
set(CPACK_SOURCE_GENERATOR TXZ)
2020-03-29 05:44:48 +00:00
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMLIB_PROJECT_NAME_LOWER}-${CPACK_PACKAGE_VERSION}")
set(CPACK_TARGET_ARCH ${CMAKE_SYSTEM_PROCESSOR})
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
set(CPACK_TARGET_ARCH "amd64")
endif()
2019-12-03 16:23:14 +00:00
set(CPACK_PACKAGE_FILE_NAME
2020-03-29 05:44:48 +00:00
"${CMLIB_PROJECT_NAME_LOWER}_${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)