cmake: adding LINK_DIRECTORIES to cmake to tell it where to find uhd if not in a normal (i.e., /usr or /usr/local) prefix.

master
Tom Rondeau 11 years ago
parent 587ff2c7f8
commit aad0c6c56a

@ -25,6 +25,7 @@ IF(UHD_FOUND)
ADD_LIBRARY(cuhd cuhd_imp.cpp cuhd_utils.c)
INCLUDE_DIRECTORIES(${UHD_INCLUDE_DIRS})
LINK_DIRECTORIES(${UHD_LIBRARY_DIRS})
TARGET_LINK_LIBRARIES(cuhd ${UHD_LIBRARIES})
LIBLTE_SET_PIC(cuhd)
@ -38,6 +39,3 @@ ELSE(UHD_FOUND)
MESSAGE(STATUS " UHD driver not found. CUHD library is not generated")
ENDIF(UHD_FOUND)

@ -38,6 +38,7 @@ target_link_libraries(ll_example lte)
add_executable(synch_file synch_file.c)
target_link_libraries(synch_file lte)
LINK_DIRECTORIES(${UHD_LIBRARY_DIRS})
#################################################################
# Check if UHD C-API and Graphics library are available
@ -94,4 +95,3 @@ IF(${CUHD_FIND} GREATER -1)
ELSE(${CUHD_FIND} GREATER -1)
MESSAGE(STATUS " UHD examples NOT INSTALLED: CUHD library not compiled.")
ENDIF(${CUHD_FIND} GREATER -1)

Loading…
Cancel
Save