0b8d41cdb9
Remove the autotools filtering in the cpack rules as the autotools build has been removed.
24 lines
659 B
CMake
24 lines
659 B
CMake
|
|
set(CPACK_SET_DESTDIR TRUE)
|
|
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
|
set(CPACK_PACKAGE_VERISON_MAJOR ${PROJECT_VERSION_MAJOR})
|
|
set(CPACK_PACKAGE_VERISON_MINOR ${PROJECT_VERSION_MINOR})
|
|
set(CPACK_PACKAGE_VERISON_PATCH ${PROJECT_VERSION_PATCH})
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${PROJECT_VERSION}")
|
|
set(CPACK_SOURCE_IGNORE_FILES
|
|
"/build/"
|
|
"/.git/"
|
|
"\\\\.sw[opn]$"
|
|
".*~"
|
|
"cscope.*"
|
|
"/.gitignore"
|
|
"/.gitreview"
|
|
"files.m4"
|
|
"${CPACK_SOURCE_IGNORE_FILES}")
|
|
|
|
include(CPack)
|
|
|
|
add_custom_target(dist COMMAND "${CMAKE_MAKE_PROGRAM}" package_source)
|
|
|