From 52d45d001c00fbbd54da4068bcbe62ac434e1db9 Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Tue, 30 Aug 2016 15:01:37 +0100 Subject: [PATCH] Fix for build without RF dependencies --- srslte/lib/CMakeLists.txt | 61 ++++++++++++++------------------------- 1 file changed, 22 insertions(+), 39 deletions(-) diff --git a/srslte/lib/CMakeLists.txt b/srslte/lib/CMakeLists.txt index 355720a8c..1eec0bf40 100644 --- a/srslte/lib/CMakeLists.txt +++ b/srslte/lib/CMakeLists.txt @@ -35,56 +35,39 @@ add_subdirectory(resampling) add_subdirectory(scrambling) add_subdirectory(ue) -add_library(srslte SHARED version.c - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ +set(srslte_srcs version.c + $ + $ + $ + $ + $ + $ + $ + $ + $ + $ + $ + $ + $ + $ + $ ) +if(RF_FOUND) + list(APPEND srslte_srcs $) +endif(RF_FOUND) -if(NOT DisableMEX) - add_library(srslte_static STATIC version.c - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - $ - ) -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})