message: adding deb cpack to the top-level cmake lists
diff: @@ -166,3 +166,36 @@ install( DIRECTORY "${CMAKE_SOURCE_DIR}/tpls/exprtk" DESTINATION include )
  install( DIRECTORY "${CMAKE_SOURCE_DIR}/tpls/eigen" DESTINATION include )
  install( DIRECTORY "${CMAKE_SOURCE_DIR}/tpls/rapidjson" DESTINATION include )
  install( DIRECTORY "${CMAKE_SOURCE_DIR}/tpls/pybind11" DESTINATION include )
  +
  +if (XACC_CPACK_DEB_PLATFORM)
  +message(STATUS "CPack DEB Build Enabled.")
  +set(CPACK_SET_DESTDIR "on")
  +set(CPACK_PACKAGING_INSTALL_PREFIX "/tmp")
  +set(CPACK_GENERATOR "DEB")
  +
  +set(MAJOR_VERSION 1)
  +set(MINOR_VERSION 0)
  +set(PATCH_VERSION 0)
  +
  +set(CPACK_PACKAGE_DESCRIPTION "xacc quantum programming framework")
  +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "xacc provides a service-oriented architecture enabling the programming, compilation, and execution of quantum code on quantum co-processors.")
  +set(CPACK_PACKAGE_VENDOR "ORNL")
  +set(CPACK_PACKAGE_CONTACT "mccaskeyaj@ornl.gov")
  +set(CPACK_PACKAGE_VERSION_MAJOR "${MAJOR_VERSION}")
  +set(CPACK_PACKAGE_VERSION_MINOR "${MINOR_VERSION}")
  +set(CPACK_PACKAGE_VERSION_PATCH "${PATCH_VERSION}")
  +set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
  +set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
  +
  +#dependencies for this service menu
  +if (${XACC_CPACK_DEB_PLATFORM} STREQUAL "bionic")
  +set(CPACK_DEBIAN_PACKAGE_DEPENDS "gcc-8, g++-8, libblas-dev, liblapack-dev, python3, python3-pip, libpython3-dev, libcurl4-openssl-dev, libssl-dev")
  +elseif(${XACC_CPACK_DEB_PLATFORM} STREQUAL "focal")
  + set(CPACK_DEBIAN_PACKAGE_DEPENDS "gcc-9, g++-9, libblas-dev, liblapack-dev, python3, python3-pip, libpython3-dev, libcurl4-openssl-dev, libssl-dev")
  +endif()
  +set(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
  +set(CPACK_DEBIAN_PACKAGE_SECTION "base")
  +set(CPACK_DEBIAN_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
  +
  +include(CPack)
  +endif()
  \ No newline at end of file
  