1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
include(InstallRequiredSystemLibraries)
# CPACK_CMAKE_GENERATOR What CMake generator should be used if
# the project is CMake project
# Unix Makefiles
#
# CPACK_GENERATOR CPack generator to be used
# STGZ;TGZ;TZ
#
# CPACK_INSTALL_CMAKE_PROJECTS List of four values: Build directory,
# Project Name, Project Component,
# Directory in the package
# /home/andy/vtk/CMake-bin;CMake;ALL;/
#
# CPACK_PACKAGE_DESCRIPTION_FILE File used as a description of a project
# /path/to/project/ReadMe.txt
#
# CPACK_PACKAGE_DESCRIPTION_SUMMARY Description summary of a project
# CMake is a build tool
# CPACK_PACKAGE_EXECUTABLES Pair of project executable and label
# ccmake;CMake
#
# CPACK_PACKAGE_FILE_NAME Package file name without extension. Also
# a directory of installer
# cmake-2.5.0-Linux-i686
#
# CPACK_PACKAGE_INSTALL_DIRECTORY Installation directory on the target
# system
# CMake 2.5
# CPACK_PACKAGE_INSTALL_REGISTRY_KEY Registry key used when installing this
# project
# CMake 2.5.0
#
# CPACK_PACKAGE_NAME Package name
# CMake
#
# CPACK_PACKAGE_VENDOR Package vendor name
# Kitware
#
# CPACK_PACKAGE_VERSION Package full version
# 2.5.0
#
# CPACK_PACKAGE_VERSION_MAJOR Package Major Version
# 2
#
# CPACK_PACKAGE_VERSION_MINOR Package Minor Version
# 5
#
# CPACK_PACKAGE_VERSION_PATCH Package Patch Version
# 0
#
# CPACK_RESOURCE_FILE_LICENSE License file for the project
# /home/andy/vtk/CMake/Copyright.txt
#
# CPACK_RESOURCE_FILE_README ReadMe file for the project
# /home/andy/vtk/CMake/Templates/CPack.GenericDescription.txt
#
# CPACK_RESOURCE_FILE_WELCOME Welcome file for the project
# /home/andy/vtk/CMake/Templates/CPack.GenericWelcome.txt
#
# CPACK_SOURCE_GENERATOR List of generators used for the source
# package
# TGZ;TZ
#
# CPACK_SOURCE_IGNORE_FILES Pattern of files in the source tree that
# won't be packaged
# /CVS/;/[.]svn/;[.]swp$;\\.#;/#;~$;cscope.*;tags
#
# CPACK_SOURCE_PACKAGE_FILE_NAME Name of the source package
# cmake-2.5.0
#
# CPACK_SOURCE_STRIP_FILES List of files in the source tree that will
# be stripped
#
# CPACK_STRIP_FILES List of files to be stripped
# bin/ccmake;bin/cmake;bin/cpack;bin/ctest
#
# CPACK_SYSTEM_NAME System name
# Linux-i686
#
# CPACK_TOPLEVEL_TAG Directory for the installed
# Linux-i686
### general settings
set(CPACK_PACKAGE_NAME "wengophone")
set(CPACK_PACKAGE_VENDOR "Wengo")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "SIP Softphone")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/wengophone/COPYING")
### versions
set(CPACK_PACKAGE_VERSION "2.0.99")
set(CPACK_PACKAGE_VERSION_MAJOR "2")
set(CPACK_PACKAGE_VERSION_MINOR "0")
set(CPACK_PACKAGE_VERSION_PATCH "99")
set(CPACK_GENERATOR "TGZ")
set(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
### source package settings
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;tags")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}svn${SVN_REVISION}")
include(CPack)
|