set(PACKAGE_TO_BUILD NONE CACHE STRING "Type of package to build when we run 'make package': DEB, RPM, or NONE")
SET(CPACK_GENERATOR "${PACKAGE_TO_BUILD}" CACHE INTERNAL "Don't set this, set PACKAGE_TO_BUILD" FORCE)

SET(CPACK_PACKAGE_NAME "cdnalizer")
SET(CPACK_PACKAGE_VERSION "${VERSION}")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Apache filter that rewrites outging HTML to refer to CDN links")
SET(CPACK_PACKAGE_CONTACT "Matthew Sherborne <matt.sherborne@rackspace.com>")
SET(CPACK_OUTPUT_FILE_PREFIX packages)

if(PACKAGE_TO_BUILD STREQUAL DEB)
    include(cmake/package-deb.cmake)
else() # Assume RPM
    include(cmake/package-rpm.cmake)
endif()

INCLUDE(CPack)
