diff options
author | Josh Blum <josh@joshknows.com> | 2010-06-27 22:10:31 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-12 17:00:23 -0700 |
commit | a4b1c4485ac6394c3d67d11d844fc4cff56307d8 (patch) | |
tree | 8d7f0910dbd10cae8f5d4bd94c14bb137920632e /host | |
parent | 7819e2ea06f44871d820f8027afc63656aa86f3a (diff) | |
download | uhd-a4b1c4485ac6394c3d67d11d844fc4cff56307d8.tar.gz uhd-a4b1c4485ac6394c3d67d11d844fc4cff56307d8.tar.bz2 uhd-a4b1c4485ac6394c3d67d11d844fc4cff56307d8.zip |
uhd: support for deb and rpm packages, added dependency requirements
Diffstat (limited to 'host')
-rw-r--r-- | host/CMakeLists.txt | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index c60372fb9..3b887bd19 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -27,6 +27,19 @@ SET(CPACK_PACKAGE_VERSION_MINOR 0) SET(CPACK_PACKAGE_VERSION_PATCH 0) SET(CPACK_RESOURCE_FILE_README ${CMAKE_CURRENT_SOURCE_DIR}/README) SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE) +SET(CPACK_PACKAGE_CONTACT "support@ettus.com") +SET(BOOST_MIN_VERSION 1.36) #used in setup boost below +SET(CPACK_DEBIAN_PACKAGE_DEPENDS " + libboost-date-time-dev (>= ${BOOST_MIN_VERSION}), + libboost-filesystem-dev (>= ${BOOST_MIN_VERSION}), + libboost-program-options-dev (>= ${BOOST_MIN_VERSION}), + libboost-regex-dev (>= ${BOOST_MIN_VERSION}), + libboost-system-dev (>= ${BOOST_MIN_VERSION}), + libboost-test-dev (>= ${BOOST_MIN_VERSION}), + libboost-thread-dev (>= ${BOOST_MIN_VERSION}), +") +SET(CPACK_DEBIAN_PACKAGE_RECOMMENDS "python, python-tk") +SET(CPACK_RPM_PACKAGE_REQUIRES "boost-devel >= ${BOOST_MIN_VERSION}") INCLUDE(CPack) #include after setting vars ######################################################################## @@ -62,10 +75,10 @@ IF(NOT CMAKE_BUILD_TYPE) ENDIF(NOT CMAKE_BUILD_TYPE) IF(CMAKE_COMPILER_IS_GNUCXX) - UHD_ADD_OPTIONAL_CXX_COMPILER_FLAG(-Wall HAVE_WALL) - UHD_ADD_OPTIONAL_CXX_COMPILER_FLAG(-Wextra HAVE_WEXTRA) - UHD_ADD_OPTIONAL_CXX_COMPILER_FLAG(-pedantic HAVE_PEDANTIC) - UHD_ADD_OPTIONAL_CXX_COMPILER_FLAG(-ansi HAVE_ANSI) + ADD_DEFINITIONS(-Wall) + ADD_DEFINITIONS(-Wextra) + ADD_DEFINITIONS(-pedantic) + ADD_DEFINITIONS(-ansi) #only export symbols that are declared to be part of the uhd api: UHD_ADD_OPTIONAL_CXX_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN) ENDIF(CMAKE_COMPILER_IS_GNUCXX) @@ -82,7 +95,7 @@ ENDIF(MSVC) # Setup Boost ######################################################################## SET(Boost_ADDITIONAL_VERSIONS "1.42.0" "1.42") -FIND_PACKAGE(Boost 1.36 REQUIRED COMPONENTS +FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS date_time filesystem program_options |