source packaging for CPack
This commit is contained in:
parent
8057c50849
commit
6ddc8e3390
1 changed files with 8 additions and 1 deletions
|
@ -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}")
|
||||
|
||||
|
|
Loading…
Reference in a new issue