aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/PaludisPackage.cmake
blob: 06240d870309c9f15ff39d21e180fa953e0a53d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)