diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-10-23 14:05:36 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-10-26 16:56:04 -0700 |
commit | 4dd7cea6e0b9004b1c344321e8903cbd528fcaff (patch) | |
tree | 1a1e8a07e9b9623e59110272f14b0281c2fbb09f /host/lib/transport/CMakeLists.txt | |
parent | 777352e7a4f24f21c1c0ea1db62a4d17726a1093 (diff) | |
download | uhd-4dd7cea6e0b9004b1c344321e8903cbd528fcaff.tar.gz uhd-4dd7cea6e0b9004b1c344321e8903cbd528fcaff.tar.bz2 uhd-4dd7cea6e0b9004b1c344321e8903cbd528fcaff.zip |
cmake: Proper selection of files for ENABLE_X300
Diffstat (limited to 'host/lib/transport/CMakeLists.txt')
-rw-r--r-- | host/lib/transport/CMakeLists.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/host/lib/transport/CMakeLists.txt b/host/lib/transport/CMakeLists.txt index 6abc399b4..80136b03d 100644 --- a/host/lib/transport/CMakeLists.txt +++ b/host/lib/transport/CMakeLists.txt @@ -22,7 +22,9 @@ ######################################################################## # Include subdirectories (different than add) ######################################################################## -INCLUDE_SUBDIRECTORY(nirio) +IF(ENABLE_X300) + INCLUDE_SUBDIRECTORY(nirio) +ENDIF(ENABLE_X300) ######################################################################## # Setup libusb @@ -128,10 +130,15 @@ LIBUHD_APPEND_SOURCES( ${CMAKE_CURRENT_SOURCE_DIR}/buffer_pool.cpp ${CMAKE_CURRENT_SOURCE_DIR}/if_addrs.cpp ${CMAKE_CURRENT_SOURCE_DIR}/udp_simple.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/nirio_zero_copy.cpp ${CMAKE_CURRENT_SOURCE_DIR}/chdr.cpp ) +IF(ENABLE_X300) + LIBUHD_APPEND_SOURCES( + ${CMAKE_CURRENT_SOURCE_DIR}/nirio_zero_copy.cpp + ) +ENDIF(ENABLE_X300) + # Verbose Debug output for send/recv SET( UHD_TXRX_DEBUG_PRINTS OFF CACHE BOOL "Use verbose debug output for send/recv" ) OPTION( UHD_TXRX_DEBUG_PRINTS "Use verbose debug output for send/recv" "" ) |