set(CPACK_PACKAGE_NAME   "LIEF")
set(CPACK_PACKAGE_VENDOR "Quarkslab")

set(CPACK_PACKAGE_VERSION_MAJOR "${LIEF_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${LIEF_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${LIEF_VERSION_PATCH}")

set(CPACK_SYSTEM_NAME ${PLATFORM})
set(CPACK_PACKAGE_CONTACT "rthomas@quarkslab.com")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "LIEF - Library to Instrument Executable Formats")
set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/Welcome")


if (UNIX AND NOT APPLE)
  #set(CPACK_GENERATOR "TGZ;STGZ;DEB")
  set(CPACK_GENERATOR "TGZ")
  set(CPACK_SOURCE_GENERATOR "TGZ")
  #set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Romain Thomas")
endif()

if (UNIX AND APPLE)
  set(CPACK_GENERATOR "TGZ")
endif()

if (WIN32)
  set(CPACK_GENERATOR "ZIP")
endif()

include(CPack)
