cmlib/CMLibCPackSources.cmake

12 lines
472 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)
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")
set(CPACK_IGNORE_FILE "cmake/etc/cpack_ignore.txt")
file(STRINGS ${CPACK_IGNORE_FILE} CPACK_SOURCE_IGNORE_FILES)
2019-02-16 10:10:12 +00:00
set_property(DIRECTORY
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS ${CPACK_IGNORE_FILE})
2019-02-12 16:31:17 +00:00
include(CPack)
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)