diff --git a/srslte/lib/CMakeLists.txt b/srslte/lib/CMakeLists.txt index 88024f87b..3a73d8761 100644 --- a/srslte/lib/CMakeLists.txt +++ b/srslte/lib/CMakeLists.txt @@ -36,53 +36,38 @@ add_subdirectory(scrambling) add_subdirectory(ue) add_subdirectory(enb) -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) set_target_properties(srslte PROPERTIES VERSION ${SRSLTE_VERSION_MAJOR}.${SRSLTE_VERSION_MINOR}) +if(NOT DisableMEX) + add_library(srslte_static STATIC ${srslte_srcs}) +endif(NOT DisableMEX) + if(MKL_FOUND) target_link_libraries(srslte ${MKL_LIBRARIES}) if(NOT DisableMEX)