set(CPACK_GENERATOR "DEB")

string(REPLACE "." ";" DGL_VERSION_STRING ${DGL_VERSION})
list(GET DGL_VERSION_STRING 0 MAJOR)
list(GET DGL_VERSION_STRING 1 MINOR)
list(GET DGL_VERSION_STRING 2 PATCH)

set(CPACK_PACKAGE_VERSION_MAJOR ${MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PATCH})

set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqtgui4,libqtcore4")
set(CPACK_PACKAGE_DESCRIPTION "The OpenGL Debugger")
set(CPACK_PACKAGE_CONTACT "Slawomir Cygan debugler@gmail.com")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/Debian/postinst;${CMAKE_CURRENT_SOURCE_DIR}/Debian/postrm;")

include(CPack)

set(CPACK_GENERATOR "DEB")

string(REPLACE "." ";" DGL_VERSION_STRING ${DGL_VERSION})
list(GET DGL_VERSION_STRING 0 MAJOR)
list(GET DGL_VERSION_STRING 1 MINOR)
list(GET DGL_VERSION_STRING 2 PATCH)

set(CPACK_PACKAGE_VERSION_MAJOR ${MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PATCH})

set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqtgui4,libqtcore4,xdg-utils")
set(CPACK_PACKAGE_DESCRIPTION "The OpenGL Debugger")
set(CPACK_PACKAGE_CONTACT "Slawomir Cygan debugler@gmail.com")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/Debian/postinst;${CMAKE_CURRENT_SOURCE_DIR}/Debian/postrm;")

include(CPack)

Add xdg to deb dependiences
Add xdg to deb dependiences
