# Packager

# Listed below is the doc/user-manual/DC-user-manual:
# this is a generated file (configure_file) that needs not be
# in the tarball. However, because it is a configure_file it is
# generated right while doing 'cmake archive', so it is not
# possible that it be absent from source dir! Which is why
# it is listed here.

set(CPACK_PACKAGE_NAME "libxpertmass")
set(CPACK_PACKAGE_VENDOR "MsXpertSuite")
set(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Libraries for mass spectrometry")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_AUTHORS "${CMAKE_SOURCE_DIR}/AUTHORS")
set(CPACK_SOURCE_GENERATOR "TGZ")

# Handy short names
set(ARCHIVE_FILE_NAME
"lib${LOWCASE_PROJECT_NAME}-${CPACK_PACKAGE_VERSION}")

set(DEBIAN_ORIG_FILE_NAME
"lib${LOWCASE_PROJECT_NAME}_${CPACK_PACKAGE_VERSION}.orig.tar.gz")

# The required name
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${ARCHIVE_FILE_NAME})

# Short name with the extension
set(ARCHIVE_FILE_NAME_EXT ${ARCHIVE_FILE_NAME}.tar.gz)

set(CPACK_SOURCE_IGNORE_FILES
  debian/
  .cache/
  \\.git/
  /\\.kdev4/
  .*kdev.*
  compile_commands.json
  TODO
  doc/html)

set(CPACK_VERBATIM_VARIABLES YES)
include(CPack)


