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
|
#
# List generators
#
set (CPACK_GENERATOR "TGZ")
set (CPACK_SOURCE_GENERATOR "TGZ")
#
# Ignoring generated files
#
set (CPACK_SOURCE_IGNORE_FILES
"\\\\.git" "_CPack_Packages"
"CMakeCache.txt" "CPackSourceConfig.cmake" "CPackConfig.cmake"
"CMakeFiles" "\\\\.gz" "\\\\.Z" "\\\\.zip"
"x86_64\\\\.rpm" "i386\\\\.rpm" "i686\\\\.rpm"
"\\\\.o" "\\\\.so" "\\\\.a" "\\\\.pyc"
"~$"
"src/tarantool$"
"src/00000000000000000001.snap"
"install_manifest.txt"
"cmake_install.cmake" "test/var/"
"${CMAKE_SOURCE_DIR}/.travis.yml"
"${CMAKE_SOURCE_DIR}/.appveyor.yml"
"${CMAKE_SOURCE_DIR}/.build.mk"
"${CMAKE_SOURCE_DIR}/test.sh"
"${CMAKE_SOURCE_DIR}/Makefile"
"${CMAKE_SOURCE_DIR}/test/Makefile"
"${CMAKE_SOURCE_DIR}/test/lib/Makefile"
"${CMAKE_SOURCE_DIR}/src/Makefile"
"${CMAKE_SOURCE_DIR}/src/box/Makefile"
"${CMAKE_SOURCE_DIR}/src/lib/Makefile"
"${CMAKE_SOURCE_DIR}/src/trivia/config.h$"
"${CMAKE_SOURCE_DIR}/src/Makefile"
"${CMAKE_SOURCE_DIR}/extra/Makefile"
"${CMAKE_SOURCE_DIR}/doc/Makefile"
"${CMAKE_SOURCE_DIR}/doc/man/Makefile"
"${CMAKE_SOURCE_DIR}/third_party/luajit/doc/"
"${CMAKE_SOURCE_DIR}.*/CVS/"
"${CMAKE_SOURCE_DIR}/.*debian/"
"${CMAKE_SOURCE_DIR}/.*rpm/"
"${CMAKE_SOURCE_DIR}/.*FreeBSD/"
)
set (CPACK_SOURCE_PACKAGE_FILE_NAME "tarantool-${PACKAGE_VERSION}")
#
# Provide options for the binary distribution.
#
string (TOLOWER "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}" platform)
set (CPACK_PACKAGE_FILE_NAME "tarantool-${PACKAGE_VERSION}-${platform}")
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-debug")
endif()
if (${TARGET_OS_DARWIN})
set (CPACK_GENERATOR "PackageMaker")
set (CPACK_SOURCE_GENERATOR "PackageMaker")
set (CPACK_PACKAGE_VENDOR "tarantool")
set (CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
set (CPACK_POSTFLIGHT_SCRIPT "${CMAKE_BINARY_DIR}/extra/postflight")
set (CPACK_RESOURCE_FILE_WELCOME "${PROJECT_SOURCE_DIR}/extra/dmg/DESCRIPTION.rtf")
set (CPACK_RESOURCE_FILE_README "${PROJECT_SOURCE_DIR}/extra/dmg/README.rtf")
set (CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/extra/dmg/LICENSE.rtf")
endif()
##
include (CPack)
|