1# Per-generator CPack configuration file. See CPACK_PROJECT_CONFIG_FILE documented at 2# http://www.cmake.org/cmake/help/v2.8.12/cpack.html#variable:CPACK_PROJECT_CONFIG_FILE 3# 4# All common CPACK_* variables are set in CMakeLists.txt already. This file only 5# overrides some of these to provide package generator specific settings. 6 7# whether package contains all development files or only runtime files 8set (DEVEL @INSTALL_HEADERS@) 9 10# ------------------------------------------------------------------------------ 11# Mac OS X package 12if (CPACK_GENERATOR MATCHES "PackageMaker|DragNDrop") 13 14 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}") 15 if (DEVEL) 16 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-devel") 17 endif () 18 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${CPACK_PACKAGE_VERSION}") 19 20# ------------------------------------------------------------------------------ 21# Debian package 22elseif (CPACK_GENERATOR MATCHES "DEB") 23 24 set (CPACK_PACKAGE_FILE_NAME "lib${CPACK_PACKAGE_NAME}") 25 if (DEVEL) 26 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-dev") 27 else () 28 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}0") 29 endif () 30 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}_${CPACK_PACKAGE_VERSION}-1_${CPACK_PACKAGE_ARCHITECTURE}") 31 32 set (CPACK_DEBIAN_PACKAGE_DEPENDS) 33 set (CPACK_DEBIAN_PACKAGE_SECTION "devel") 34 set (CPACK_DEBIAN_PACKAGE_PRIORITY "optional") 35 set (CPACK_DEBIAN_PACKAGE_HOMEPAGE "${CPACK_RPM_PACKAGE_URL}") 36 set (CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR}") 37 set (CPACK_DEBIAN_PACKAGE_ARCHITECTURE "${CPACK_PACKAGE_ARCHITECTURE}") 38 39# ------------------------------------------------------------------------------ 40# RPM package 41elseif (CPACK_GENERATOR MATCHES "RPM") 42 43 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}") 44 if (DEVEL) 45 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-devel") 46 endif () 47 set (CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-${CPACK_PACKAGE_VERSION}-1.${CPACK_PACKAGE_ARCHITECTURE}") 48 49endif () 50