          qhull rbox qconvex qdelaunay qvoronoi qhalf
          user_eg user_eg2 user_eg3
  )
-@@ -188,17 +188,32 @@
+@@ -188,17 +188,34 @@
      COMPILE_DEFINITIONS "qh_QHpointer"
      VERSION ${qhull_VERSION})
  

+SET(CPACK_PACKAGE_VERSION ${qhull_VERSION})
+SET(CPACK_PACKAGE_VERSION_MAJOR ${qhull_MAJOR})
+include(CPack)

 # ---------------------------------------
 # Define qhull executables linked to qhullstatic library
 # ---------------------------------------
@@ -320,3 +361,35 @@
 install(FILES ${road_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/road)
 
 install(DIRECTORY html/ DESTINATION ${DOC_INSTALL_DIR})
