diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-03-10 11:45:25 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-03-10 11:45:25 -0700 |
commit | e65b2d66434d682731d9039b2d3200235acd38ee (patch) | |
tree | 61c46417a9994376a4bc3e47075c234547ba2848 /host | |
parent | 17b8f6cf6e6a0b812516ca0641cdac5425996fca (diff) | |
download | uhd-e65b2d66434d682731d9039b2d3200235acd38ee.tar.gz uhd-e65b2d66434d682731d9039b2d3200235acd38ee.tar.bz2 uhd-e65b2d66434d682731d9039b2d3200235acd38ee.zip |
cmake: Skip building fx3 utils if B200 is disabled
Diffstat (limited to 'host')
-rw-r--r-- | host/utils/CMakeLists.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/host/utils/CMakeLists.txt b/host/utils/CMakeLists.txt index 3db28fa3c..ed8640187 100644 --- a/host/utils/CMakeLists.txt +++ b/host/utils/CMakeLists.txt @@ -65,14 +65,19 @@ SET(util_share_sources IF(ENABLE_USB) LIST(APPEND util_share_sources fx2_init_eeprom.cpp - b2xx_fx3_utils.cpp ) INCLUDE_DIRECTORIES(${LIBUSB_INCLUDE_DIRS}) - # Additional include directories for b2xx_fx3_utils - INCLUDE_DIRECTORIES( - ${CMAKE_CURRENT_SOURCE_DIR}/../lib/usrp/b200 - ${CMAKE_CURRENT_SOURCE_DIR}/../lib/usrp/common - ${CMAKE_CURRENT_SOURCE_DIR}/../lib/usrp/common/ad9361_driver) + IF(ENABLE_B200) + LIST(APPEND util_share_sources + b2xx_fx3_utils.cpp + ) + # Additional include directories for b2xx_fx3_utils + INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_SOURCE_DIR}/../lib/usrp/b200 + ${CMAKE_CURRENT_SOURCE_DIR}/../lib/usrp/common + ${CMAKE_CURRENT_SOURCE_DIR}/../lib/usrp/common/ad9361_driver + ) + ENDIF(ENABLE_B200) ENDIF(ENABLE_USB) IF(ENABLE_OCTOCLOCK) LIST(APPEND util_share_sources |