]> git.mxchange.org Git - flightgear.git/commitdiff
source packaging for CPack
authorJames Turner <zakalawe@mac.com>
Sat, 22 Oct 2011 15:07:09 +0000 (16:07 +0100)
committerJames Turner <zakalawe@mac.com>
Sat, 22 Oct 2011 15:07:09 +0000 (16:07 +0100)
CMakeLists.txt

index 4de60d891503c0cbefad25e7cd14b72522f77aec..1e5484ebe952f29c1879a69f4c260134484a2128 100644 (file)
@@ -4,7 +4,7 @@ include (CheckFunctionExists)
 include (CheckCSourceCompiles)
 include (CheckCXXSourceCompiles)
 include (CheckIncludeFile)
-include (CPack)
+
 
 project(FlightGear)
 
@@ -27,6 +27,13 @@ set(CPACK_PACKAGE_VERSION_PATCH ${CMAKE_MATCH_3})
 SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/COPYING")
 SET(CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/README")
 
+set(CPACK_SOURCE_GENERATOR TBZ2 ZIP)
+set(CPACK_SOURCE_PACKAGE_FILE_NAME "flightgear-${FLIGHTGEAR_VERSION}" CACHE INTERNAL "tarball basename")
+set(CPACK_SOURCE_IGNORE_FILES
+  "^${PROJECT_SOURCE_DIR}/.git;\\\\.gitignore;Makefile.am;~$;${CPACK_SOURCE_IGNORE_FILES}")
+
+include (CPack)
+
 # We have some custom .cmake scripts not in the official distribution.
 set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules;${CMAKE_MODULE_PATH}")