Exheredludis/cmake/modules/PaludisPackage.cmake
Saleem Abdulrasool 0b8d41cdb9 build: remove some unnecessary ignores in packaging
Remove the autotools filtering in the cpack rules as the autotools build has
been removed.
2016-12-03 19:47:26 -08:00

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)