[cig-commits] [commit] master: Initial CPack support (still incomplete) (eb78478)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Wed Oct 29 16:20:40 PDT 2014
Repository : https://github.com/geodynamics/vq
On branch : master
Link : https://github.com/geodynamics/vq/compare/0ca7695073f8b223d815f10653613b02b6c47df8...197914f4e03e55d321cae45161deafb1a5ade706
>---------------------------------------------------------------
commit eb784788959541a72a106b1c985bae29be0e1c8f
Author: Eric Heien <emheien at ucdavis.edu>
Date: Wed Oct 29 13:49:17 2014 -0700
Initial CPack support (still incomplete)
>---------------------------------------------------------------
eb784788959541a72a106b1c985bae29be0e1c8f
CMakeLists.txt | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 65b14b9..68e0193 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,18 @@
+############################################################
+# USAGE
+# cmake
+# generate Makefiles to compile/test VQ and QuakeLib
+# cmake -G Xcode
+# generate XCode project to compile/test VQ and QuakeLib
+# make -j <#>
+# compile VQ and QuakeLib with # processors
+# make test OR ctest
+# run all possible tests to ensure correct functionality
+# ctest -R <regex>
+# run tests that match <regex> expression
+# make package_source
+# create source package for distribution
+############################################################
# The name of our project is "VQ". CMakeLists files in this project can
# refer to the root source directory of the project as ${VQ_SOURCE_DIR} and
# to the root binary directory of the project as ${VQ_BINARY_DIR}.
@@ -12,6 +27,21 @@ SET(VQ_VERSION_MINOR 2)
SET(VQ_VERSION_SUBMINOR 0)
SET(VQ_VERSION_STR "${VQ_VERSION_MAJOR}.${VQ_VERSION_MINOR}.${VQ_VERSION_SUBMINOR}")
+# Enable CPack functionality
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Virtual Quake")
+SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
+SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
+SET(CPACK_PACKAGE_VERSION_MAJOR ${VQ_VERSION_MAJOR})
+SET(CPACK_PACKAGE_VERSION_MINOR ${VQ_VERSION_MINOR})
+SET(CPACK_PACKAGE_VERSION_PATCH ${VQ_VERSION_SUBMINOR})
+SET(CPACK_SOURCE_INSTALLED_DIRECTORIES
+ "${CMAKE_SOURCE_DIR}/src;./src"
+ "${CMAKE_SOURCE_DIR}/examples;./examples"
+ "${CMAKE_SOURCE_DIR}/quakelib;./quakelib"
+ "${CMAKE_SOURCE_DIR}/doc;./doc")
+SET(CPACK_SOURCE_GENERATOR TGZ)
+INCLUDE (CPack)
+
# Find a Git installation and the source Git revision if available
FIND_PACKAGE(Git)
IF(GIT_FOUND)
More information about the CIG-COMMITS
mailing list