diff options
author | Josh Blum <josh@joshknows.com> | 2010-02-25 19:43:20 +0000 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-02-25 19:43:20 +0000 |
commit | 778a41b393b7d517463950c4ac014d3a2eb8eceb (patch) | |
tree | e1742313b230a39a7b494dac298f5fae5e0f0cbb /host/lib/CMakeLists.txt | |
parent | a9f8ba6e37e1349ce61b5022ddaff1c64dd52bd3 (diff) | |
download | uhd-778a41b393b7d517463950c4ac014d3a2eb8eceb.tar.gz uhd-778a41b393b7d517463950c4ac014d3a2eb8eceb.tar.bz2 uhd-778a41b393b7d517463950c4ac014d3a2eb8eceb.zip |
added usrp1e fpga loader
Diffstat (limited to 'host/lib/CMakeLists.txt')
-rw-r--r-- | host/lib/CMakeLists.txt | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt index 96fba6e53..33314e729 100644 --- a/host/lib/CMakeLists.txt +++ b/host/lib/CMakeLists.txt @@ -41,17 +41,28 @@ SET(libuhd_sources ######################################################################## # Conditionally add the usrp1e sources ######################################################################## -INCLUDE(CheckIncludeFile) -CHECK_INCLUDE_FILE("linux/ioctl.h" HAS_LINUX_IOCTL_H) -IF(HAS_LINUX_IOCTL_H) +INCLUDE(CheckIncludeFiles) +SET(usrp1e_required_headers + linux/ioctl.h + linux/spi/spidev.h +) +CHECK_INCLUDE_FILES( + "${usrp1e_required_headers}" + HAS_USRP1E_REQUIRED_HEADERS +) + +IF(HAS_USRP1E_REQUIRED_HEADERS) + MESSAGE(STATUS "Building usrp1e support...") LIST(APPEND libuhd_sources + usrp/usrp1e/fpga-downloader.cc usrp/usrp1e/usrp1e_impl.cpp ) -ELSE(HAS_LINUX_IOCTL_H) +ELSE(HAS_USRP1E_REQUIRED_HEADERS) + MESSAGE(STATUS "Skipping usrp1e support...") LIST(APPEND libuhd_sources usrp/usrp1e/usrp1e_none.cpp ) -ENDIF(HAS_LINUX_IOCTL_H) +ENDIF(HAS_USRP1E_REQUIRED_HEADERS) ######################################################################## # Setup libuhd library |