Merge branch 'next' into novolk

master
Ismael Gomez 8 years ago
commit c9ab2b7d5d

@ -55,10 +55,6 @@ set(srslte_srcs version.c
$<TARGET_OBJECTS:srslte_enb> $<TARGET_OBJECTS:srslte_enb>
) )
if(RF_FOUND)
list(APPEND srslte_srcs $<TARGET_OBJECTS:srslte_rf>)
endif(RF_FOUND)
add_library(srslte SHARED ${srslte_srcs}) add_library(srslte SHARED ${srslte_srcs})
target_link_libraries(srslte pthread m) target_link_libraries(srslte pthread m)
set_target_properties(srslte PROPERTIES set_target_properties(srslte PROPERTIES
@ -87,7 +83,11 @@ else(MKL_FOUND)
endif(NOT DisableMEX) endif(NOT DisableMEX)
endif(MKL_FOUND) endif(MKL_FOUND)
## This linkage is required for the examples and tests only
if(RF_FOUND) if(RF_FOUND)
target_link_libraries(srslte srslte_rf)
if(UHD_FOUND) if(UHD_FOUND)
target_link_libraries(srslte ${UHD_LIBRARIES}) target_link_libraries(srslte ${UHD_LIBRARIES})
endif(UHD_FOUND) endif(UHD_FOUND)

@ -33,6 +33,15 @@ if(RF_FOUND)
list(APPEND SOURCES_RF rf_blade_imp.c) list(APPEND SOURCES_RF rf_blade_imp.c)
endif (BLADERF_FOUND) endif (BLADERF_FOUND)
add_library(srslte_rf OBJECT ${SOURCES_RF}) add_library(srslte_rf SHARED ${SOURCES_RF})
if (UHD_FOUND)
target_link_libraries(srslte_rf ${UHD_LIBRARIES})
endif (UHD_FOUND)
if (BLADERF_FOUND)
target_link_libraries(srslte_rf ${BLADERF_LIBRARIES})
endif (BLADERF_FOUND)
SRSLTE_SET_PIC(srslte_rf) SRSLTE_SET_PIC(srslte_rf)
endif(RF_FOUND) endif(RF_FOUND)
Loading…
Cancel
Save