Demos (master): cmake: Basic packaging support.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Jun 6 14:33:57 UTC 2011
Module: Demos
Branch: master
Commit: 8dae237d2c85421b28dc5d86e7e36ceb1ca335cc
URL: http://cgit.freedesktop.org/mesa/demos/commit/?id=8dae237d2c85421b28dc5d86e7e36ceb1ca335cc
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Jun 6 15:32:58 2011 +0100
cmake: Basic packaging support.
---
CMakeLists.txt | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 240018d..c1bc27f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -89,3 +89,22 @@ endif (MSVC)
add_definitions(-DDEMOS_DATA_DIR=\"../data/\")
add_subdirectory (src)
+
+
+install (FILES index.html DESTINATION doc)
+
+set (CPACK_PACKAGE_NAME "mesa-demos")
+set (CPACK_PACKAGE_VERSION_MAJOR "8")
+set (CPACK_PACKAGE_VERSION_MINOR "0")
+set (CPACK_PACKAGE_VERSION_PATCH "1")
+
+if (WIN32)
+ set (CPACK_GENERATOR "ZIP")
+elseif (APPLE)
+ set (CPACK_GENERATOR "DragNDrop")
+ set (CPACK_DMG_FORMAT "UDBZ")
+else ()
+ set (CPACK_GENERATOR "TBZ2")
+endif ()
+
+include(CPack)
More information about the mesa-commit
mailing list