only build srslte_radio when RF lib is found

This commit is contained in:
Andre Puschmann 2017-05-18 13:37:51 +02:00
parent 5d5b847551
commit 07ece3b216
1 changed files with 2 additions and 0 deletions

View File

@ -17,7 +17,9 @@
# and at http://www.gnu.org/licenses/.
#
if(RF_FOUND)
add_library(srslte_radio SHARED radio.cc radio_multi.cc)
INSTALL(TARGETS srslte_radio DESTINATION ${LIBRARY_DIR})
target_link_libraries(srslte_radio srslte_rf)
SRSLTE_SET_PIC(srslte_radio)
endif(RF_FOUND)