Fix for build without RF dependencies

master
Paul Sutton 8 years ago
parent 96237d74ad
commit 52d45d001c

@ -35,7 +35,7 @@ add_subdirectory(resampling)
add_subdirectory(scrambling)
add_subdirectory(ue)
add_library(srslte SHARED version.c
set(srslte_srcs version.c
$<TARGET_OBJECTS:srslte_agc>
$<TARGET_OBJECTS:srslte_ch_estimation>
$<TARGET_OBJECTS:srslte_common>
@ -51,40 +51,23 @@ add_library(srslte SHARED version.c
$<TARGET_OBJECTS:srslte_resampling>
$<TARGET_OBJECTS:srslte_scrambling>
$<TARGET_OBJECTS:srslte_ue>
$<TARGET_OBJECTS:srslte_rf>
)
if(RF_FOUND)
list(APPEND srslte_srcs $<TARGET_OBJECTS:srslte_rf>)
endif(RF_FOUND)
if(NOT DisableMEX)
add_library(srslte_static STATIC version.c
$<TARGET_OBJECTS:srslte_agc>
$<TARGET_OBJECTS:srslte_ch_estimation>
$<TARGET_OBJECTS:srslte_common>
$<TARGET_OBJECTS:srslte_fec>
$<TARGET_OBJECTS:srslte_mimo>
$<TARGET_OBJECTS:srslte_phch>
$<TARGET_OBJECTS:srslte_sync>
$<TARGET_OBJECTS:srslte_utils>
$<TARGET_OBJECTS:srslte_channel>
$<TARGET_OBJECTS:srslte_dft>
$<TARGET_OBJECTS:srslte_io>
$<TARGET_OBJECTS:srslte_modem>
$<TARGET_OBJECTS:srslte_resampling>
$<TARGET_OBJECTS:srslte_scrambling>
$<TARGET_OBJECTS:srslte_ue>
$<TARGET_OBJECTS:srslte_rf>
)
endif(NOT DisableMEX)
add_library(srslte SHARED ${srslte_srcs})
target_link_libraries(srslte pthread m ${FFTW3F_LIBRARIES})
set_target_properties(srslte PROPERTIES
VERSION ${SRSLTE_VERSION_MAJOR}.${SRSLTE_VERSION_MINOR})
if(NOT DisableMEX)
add_library(srslte_static STATIC ${srslte_srcs})
target_link_libraries(srslte_static ${FFTW3F_LIBRARIES})
endif(NOT DisableMEX)
if(RF_FOUND)
if(UHD_FOUND)
target_link_libraries(srslte ${UHD_LIBRARIES})

Loading…
Cancel
Save