aboutsummaryrefslogtreecommitdiffstats
path: root/host/CMakeLists.txt
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-07-13 18:15:47 -0700
committerJosh Blum <josh@joshknows.com>2010-07-13 18:15:47 -0700
commit3f1d313c9ffd30c70c609748696b746633e47a8a (patch)
tree59017c35546eaa6387a955f61a52937962ea5d71 /host/CMakeLists.txt
parenta4b1c4485ac6394c3d67d11d844fc4cff56307d8 (diff)
downloaduhd-3f1d313c9ffd30c70c609748696b746633e47a8a.tar.gz
uhd-3f1d313c9ffd30c70c609748696b746633e47a8a.tar.bz2
uhd-3f1d313c9ffd30c70c609748696b746633e47a8a.zip
uhd: moved cpack stuff into config dir (work on cpack)
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r--host/CMakeLists.txt27
1 files changed, 5 insertions, 22 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 3b887bd19..8ae651eca 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -20,27 +20,10 @@ PROJECT(UHD CXX)
ENABLE_TESTING()
########################################################################
-# Setup CPack
-########################################################################
-SET(CPACK_PACKAGE_VERSION_MAJOR 0)
-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
+# Config Files
+########################################################################
+INCLUDE(${CMAKE_SOURCE_DIR}/config/Python.cmake)
+INCLUDE(${CMAKE_SOURCE_DIR}/config/CPack.cmake)
########################################################################
# Install Dirs
@@ -112,7 +95,7 @@ LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
# Create Uninstall Target
########################################################################
CONFIGURE_FILE(
- ${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in
+ ${CMAKE_SOURCE_DIR}/config/cmake_uninstall.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake
@ONLY)