root / host / Modules / UHDPackage.cmake @ a963caab
History | View | Annotate | Download (3.71 KB)
| 1 |
# |
|---|---|
| 2 |
# Copyright 2010 Ettus Research LLC |
| 3 |
# |
| 4 |
# This program is free software: you can redistribute it and/or modify |
| 5 |
# it under the terms of the GNU General Public License as published by |
| 6 |
# the Free Software Foundation, either version 3 of the License, or |
| 7 |
# (at your option) any later version. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
# GNU General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
# |
| 17 |
|
| 18 |
######################################################################## |
| 19 |
INCLUDE(UHDVersion) #sets version information |
| 20 |
|
| 21 |
######################################################################## |
| 22 |
# Setup CPack General |
| 23 |
######################################################################## |
| 24 |
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ettus Research - Universal Hardware Driver") |
| 25 |
SET(CPACK_PACKAGE_VENDOR "Ettus Research LLC") |
| 26 |
SET(CPACK_PACKAGE_CONTACT "support@ettus.com") |
| 27 |
SET(CPACK_PACKAGE_VERSION_MAJOR ${UHD_VERSION_MAJOR})
|
| 28 |
SET(CPACK_PACKAGE_VERSION_MINOR ${UHD_VERSION_MINOR})
|
| 29 |
SET(CPACK_PACKAGE_VERSION_PATCH ${UHD_VERSION_PATCH})
|
| 30 |
SET(CPACK_RESOURCE_FILE_README ${CMAKE_SOURCE_DIR}/README)
|
| 31 |
SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE)
|
| 32 |
|
| 33 |
######################################################################## |
| 34 |
# Setup CPack Components |
| 35 |
######################################################################## |
| 36 |
SET(CPACK_COMPONENT_LIBRARIES_GROUP "Development") |
| 37 |
SET(CPACK_COMPONENT_HEADERS_GROUP "Development") |
| 38 |
SET(CPACK_COMPONENT_UTILITIES_GROUP "Runtime") |
| 39 |
SET(CPACK_COMPONENT_EXAMPLES_GROUP "Runtime") |
| 40 |
SET(CPACK_COMPONENT_TESTS_GROUP "Runtime") |
| 41 |
SET(CPACK_COMPONENT_MANUAL_GROUP "Documentation") |
| 42 |
SET(CPACK_COMPONENT_DOXYGEN_GROUP "Documentation") |
| 43 |
|
| 44 |
SET(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "Libraries") |
| 45 |
SET(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ Headers") |
| 46 |
SET(CPACK_COMPONENT_UTILITIES_DISPLAY_NAME "Utilities") |
| 47 |
SET(CPACK_COMPONENT_EXAMPLES_DISPLAY_NAME "Examples") |
| 48 |
SET(CPACK_COMPONENT_TESTS_DISPLAY_NAME "Unit Tests") |
| 49 |
SET(CPACK_COMPONENT_MANUAL_DISPLAY_NAME "Manual") |
| 50 |
SET(CPACK_COMPONENT_DOXYGEN_DISPLAY_NAME "Doxygen") |
| 51 |
|
| 52 |
SET(CPACK_COMPONENT_UTILITIES_DEPENDS libraries) |
| 53 |
SET(CPACK_COMPONENT_EXAMPLES_DEPENDS libraries) |
| 54 |
SET(CPACK_COMPONENT_TESTS_DEPENDS libraries) |
| 55 |
|
| 56 |
SET(CPACK_COMPONENTS_ALL libraries headers utilities examples tests manual doxygen) |
| 57 |
|
| 58 |
######################################################################## |
| 59 |
# Setup CPack Debian |
| 60 |
######################################################################## |
| 61 |
SET(BOOST_MIN_VERSION 1.36) #used in setup for boost |
| 62 |
STRING(REPLACE "," ", " CPACK_DEBIAN_PACKAGE_DEPENDS |
| 63 |
"libboost-date-time-dev (>= ${BOOST_MIN_VERSION}),"
|
| 64 |
"libboost-filesystem-dev (>= ${BOOST_MIN_VERSION}),"
|
| 65 |
"libboost-program-options-dev (>= ${BOOST_MIN_VERSION}),"
|
| 66 |
"libboost-regex-dev (>= ${BOOST_MIN_VERSION}),"
|
| 67 |
"libboost-system-dev (>= ${BOOST_MIN_VERSION}),"
|
| 68 |
"libboost-test-dev (>= ${BOOST_MIN_VERSION}),"
|
| 69 |
"libboost-thread-dev (>= ${BOOST_MIN_VERSION})"
|
| 70 |
) |
| 71 |
SET(CPACK_DEBIAN_PACKAGE_RECOMMENDS "python, python-tk") |
| 72 |
|
| 73 |
######################################################################## |
| 74 |
# Setup CPack RPM |
| 75 |
######################################################################## |
| 76 |
SET(CPACK_RPM_PACKAGE_REQUIRES "boost-devel >= ${BOOST_MIN_VERSION}")
|
| 77 |
|
| 78 |
######################################################################## |
| 79 |
INCLUDE(CPack) #include after setting vars |