• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ------------------- Debianization ---------------------
2if (UNIX)
3
4    # Set build environment
5    SET(CPACK_GENERATOR "TGZ;DEB")
6    SET(CPACK_SOURCE_TGZ "ON")
7
8    # Common package information
9    SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY
10        "FlatBuffers is an efficient cross platform serialization library for C++, with support for Java, C# and Go. It was created at Google specifically for game development and other performance-critical applications.")
11    SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/google/flatbuffers")
12    SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Vitaly Isaev <vitalyisaev2@gmail.com>")
13
14    SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
15    SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
16    SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
17    SET(CPACK_PACKAGE_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}-${VERSION_COMMIT}")
18    SET(CPACK_DEBIAN_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}")
19
20    # Package name
21    SET(CPACK_DEBIAN_PACKAGE_NAME "flatbuffers")
22    SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE)
23    set(CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT")
24
25endif(UNIX)
26