aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--host/lib/usrp/x400/CMakeLists.txt23
1 files changed, 14 insertions, 9 deletions
diff --git a/host/lib/usrp/x400/CMakeLists.txt b/host/lib/usrp/x400/CMakeLists.txt
index b3efe3b60..3586d3a35 100644
--- a/host/lib/usrp/x400/CMakeLists.txt
+++ b/host/lib/usrp/x400/CMakeLists.txt
@@ -8,13 +8,18 @@
# This file included, use CMake directory variables
########################################################################
-LIBUHD_APPEND_SOURCES(
- ${CMAKE_CURRENT_SOURCE_DIR}/adc_self_calibration.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/x400_radio_control.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/x400_rfdc_control.cpp
-)
+########################################################################
+# Conditionally configure the X400 support
+########################################################################
+if(ENABLE_X400)
+ LIBUHD_APPEND_SOURCES(
+ ${CMAKE_CURRENT_SOURCE_DIR}/adc_self_calibration.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/x400_radio_control.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/x400_rfdc_control.cpp
+ )
-if(ENABLE_DPDK)
- include_directories(${DPDK_INCLUDE_DIRS})
- add_definitions(-DHAVE_DPDK)
-endif(ENABLE_DPDK)
+ if(ENABLE_DPDK)
+ include_directories(${DPDK_INCLUDE_DIRS})
+ add_definitions(-DHAVE_DPDK)
+ endif(ENABLE_DPDK)
+endif(ENABLE_X400)