add UHD compile switches

This commit is contained in:
Bastian Bloessl
2016-12-16 09:37:52 +01:00
parent ae4ba351d3
commit f73862b500
3 changed files with 15 additions and 1 deletions
+7 -1
View File
@@ -45,7 +45,13 @@ endif()
find_package(UHD)
if(NOT UHD_FOUND)
message(FATAL_ERROR "UHD library not found.")
message(STATUS "UHD library not found, no support for timed TX.")
set(UHD_INCLUDE_DIRS "")
set(UHD_LIBRARY_DIRS "")
set(UHD_LIBRARIES "")
else()
message(STATUS "UHD library found.")
add_definitions(-DFOO_UHD)
endif()
########################################################################