From 24eaccf7a552d10f243fc0fd095d422bd802368c Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 22 Dec 2017 11:32:10 -0800 Subject: Clean up build process - Removed stale files (i2c_core_100, spi_core_100) - Made more compilation condiational; disabling some devices will disable dependencies as well so they don't get compiled in by default. --- host/lib/usrp/common/CMakeLists.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'host/lib/usrp/common') diff --git a/host/lib/usrp/common/CMakeLists.txt b/host/lib/usrp/common/CMakeLists.txt index e5960415e..2f4fac5c6 100644 --- a/host/lib/usrp/common/CMakeLists.txt +++ b/host/lib/usrp/common/CMakeLists.txt @@ -13,16 +13,21 @@ IF(ENABLE_USB) ) ENDIF(ENABLE_USB) +IF(ENABLE_E300 OR ENABLE_B200 OR ENABLE_N230) + INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/ad9361_driver") + LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/ad9361_ctrl.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/ad936x_manager.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/ad9361_driver/ad9361_device.cpp + ) +ENDIF(ENABLE_E300 OR ENABLE_B200 OR ENABLE_N230) + INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) -INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/ad9361_driver") LIBUHD_APPEND_SOURCES( ${CMAKE_CURRENT_SOURCE_DIR}/adf4001_ctrl.cpp ${CMAKE_CURRENT_SOURCE_DIR}/adf435x.cpp ${CMAKE_CURRENT_SOURCE_DIR}/adf535x.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/ad9361_ctrl.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/ad936x_manager.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/ad9361_driver/ad9361_device.cpp ${CMAKE_CURRENT_SOURCE_DIR}/apply_corrections.cpp ${CMAKE_CURRENT_SOURCE_DIR}/validate_subdev_spec.cpp ${CMAKE_CURRENT_SOURCE_DIR}/recv_packet_demuxer.cpp -- cgit v1.2.3