message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}")
if("${CPACK_GENERATOR}" MATCHES "TGZ")
  set(CPACK_PACKAGING_INSTALL_PREFIX "/toolbox")
elseif("${CPACK_GENERATOR}" MATCHES "DEB")
  set(CPACK_DEBIAN_PACKAGE_DEPENDS "boost (>=1.67)")
  set(CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_PACKAGE_HOMEPAGE_URL}")
elseif("${CPACK_GENERATOR}" MATCHES "RPM")
  set(CPACK_RPM_PACKAGE_DEPENDS "boost (>=1.67)")
  set(CPACK_RPM_PACKAGE_ARCHITECTURE ${CMAKE_SYSTEM_PROCESSOR})
  set(CPACK_RPM_PACKAGE_GROUP "Productivity/ReactiveMarkets")
  set(CPACK_RPM_PACKAGE_LICENSE "Apache 2.0")
  set(CPACK_RPM_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
  set(CPACK_RPM_PACKAGE_SUMMARY "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}")
  set(CPACK_RPM_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
  set(CPACK_RPM_PACKAGE_URL "${CPACK_PACKAGE_HOMEPAGE_URL}")
endif()
