diff options
author | Josh Blum <josh@joshknows.com> | 2011-01-14 10:07:31 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-01-14 10:07:31 -0800 |
commit | 4818bd27f07acea1e663086d59fbb7d44bd5af81 (patch) | |
tree | a9cc80e503273c51edd4a374732aa7692a243edc /host/CMakeLists.txt | |
parent | 350c606585a45af79b8c6bf6b0e6753afa1d95d8 (diff) | |
download | uhd-4818bd27f07acea1e663086d59fbb7d44bd5af81.tar.gz uhd-4818bd27f07acea1e663086d59fbb7d44bd5af81.tar.bz2 uhd-4818bd27f07acea1e663086d59fbb7d44bd5af81.zip |
uhd: more useful prints for component macro
made libuhd a component so we can just build the docs
do the python tests in the top level cmakelists
misc other tweaks
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r-- | host/CMakeLists.txt | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index d7e6a6a50..32a3f0a62 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -90,7 +90,7 @@ IF(UNIX AND EXISTS "/usr/lib64") ENDIF(UNIX AND EXISTS "/usr/lib64") SET(Boost_ADDITIONAL_VERSIONS "1.42.0" "1.42" "1.43.0" "1.43" "1.44.0" "1.44") -FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} REQUIRED COMPONENTS +FIND_PACKAGE(Boost ${BOOST_MIN_VERSION} COMPONENTS date_time filesystem program_options @@ -104,6 +104,23 @@ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) ######################################################################## +# Check Python Modules +######################################################################## +INCLUDE(UHDPython) + +PYTHON_CHECK_MODULE( + "Python version 2.6 or greater" + "platform" "platform.python_version() >= '2.6'" + HAVE_PYTHON_PLAT_MIN_VERSION +) + +PYTHON_CHECK_MODULE( + "Cheetah templates 2.0.0 or greater" + "Cheetah" "Cheetah.Version >= '2.0.0'" + HAVE_PYTHON_MODULE_CHEETAH +) + +######################################################################## # Create Uninstall Target ######################################################################## CONFIGURE_FILE( @@ -141,7 +158,7 @@ INSTALL(FILES ######################################################################## # Register top level components ######################################################################## -SET(ENABLE_LIBUHD ON) #always enabled +LIBUHD_REGISTER_COMPONENT("LibUHD" ENABLE_LIBUHD ON "Boost_FOUND;HAVE_PYTHON_PLAT_MIN_VERSION;HAVE_PYTHON_MODULE_CHEETAH" OFF) LIBUHD_REGISTER_COMPONENT("Examples" ENABLE_EXAMPLES ON "ENABLE_LIBUHD" OFF) LIBUHD_REGISTER_COMPONENT("Utils" ENABLE_UTILS ON "ENABLE_LIBUHD" OFF) LIBUHD_REGISTER_COMPONENT("Tests" ENABLE_TESTS ON "ENABLE_LIBUHD" OFF) |