From 94a54f226d8e9c1f24204914b00acb513443d4d5 Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Thu, 8 Jun 2017 12:34:33 +0100 Subject: [PATCH] Conditional srslte_rf linking for examples --- lib/examples/CMakeLists.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/examples/CMakeLists.txt b/lib/examples/CMakeLists.txt index fb44f0fce..652a2c195 100644 --- a/lib/examples/CMakeLists.txt +++ b/lib/examples/CMakeLists.txt @@ -30,16 +30,20 @@ target_link_libraries(synch_file srslte_phy) # These can be compiled without UHD or graphics support ################################################################# -add_executable(pdsch_ue pdsch_ue.c) -target_link_libraries(pdsch_ue srslte_phy srslte_rf pthread) - -add_executable(pdsch_enodeb pdsch_enodeb.c) -target_link_libraries(pdsch_enodeb srslte_phy srslte_rf pthread) - if(RF_FOUND) + add_executable(pdsch_ue pdsch_ue.c) + target_link_libraries(pdsch_ue srslte_phy srslte_rf pthread) + add_executable(pdsch_enodeb pdsch_enodeb.c) + target_link_libraries(pdsch_enodeb srslte_phy srslte_rf pthread) else(RF_FOUND) add_definitions(-DDISABLE_RF) + + add_executable(pdsch_ue pdsch_ue.c) + target_link_libraries(pdsch_ue srslte_phy pthread) + + add_executable(pdsch_enodeb pdsch_enodeb.c) + target_link_libraries(pdsch_enodeb srslte_phy pthread) endif(RF_FOUND) find_package(SRSGUI)