fix issue compiling pssch_ue when RF driver wasn't found

master
Andre Puschmann 5 years ago
parent d1356568e0
commit 2e455908e8

@ -35,9 +35,6 @@ if(RF_FOUND)
add_executable(pdsch_enodeb pdsch_enodeb.c) add_executable(pdsch_enodeb pdsch_enodeb.c)
target_link_libraries(pdsch_enodeb srslte_phy srslte_common srslte_rf pthread) target_link_libraries(pdsch_enodeb srslte_phy srslte_common srslte_rf pthread)
add_executable(pssch_ue pssch_ue.c)
target_link_libraries(pssch_ue srslte_phy srslte_common srslte_rf pthread)
else(RF_FOUND) else(RF_FOUND)
add_definitions(-DDISABLE_RF) add_definitions(-DDISABLE_RF)
@ -46,15 +43,11 @@ else(RF_FOUND)
add_executable(pdsch_enodeb pdsch_enodeb.c) add_executable(pdsch_enodeb pdsch_enodeb.c)
target_link_libraries(pdsch_enodeb srslte_common srslte_phy pthread) target_link_libraries(pdsch_enodeb srslte_common srslte_phy pthread)
add_executable(pssch_ue pssch_ue.c)
target_link_libraries(pssch_ue srslte_common srslte_phy pthread)
endif(RF_FOUND) endif(RF_FOUND)
if(SRSGUI_FOUND) if(SRSGUI_FOUND)
include_directories(${SRSGUI_INCLUDE_DIRS}) include_directories(${SRSGUI_INCLUDE_DIRS})
target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES}) target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})
target_link_libraries(pssch_ue ${SRSGUI_LIBRARIES})
add_definitions(-DENABLE_GUI) add_definitions(-DENABLE_GUI)
endif(SRSGUI_FOUND) endif(SRSGUI_FOUND)
@ -87,6 +80,13 @@ if(RF_FOUND)
add_executable(usrp_txrx usrp_txrx.c) add_executable(usrp_txrx usrp_txrx.c)
target_link_libraries(usrp_txrx srslte_phy srslte_rf) target_link_libraries(usrp_txrx srslte_phy srslte_rf)
add_executable(pssch_ue pssch_ue.c)
target_link_libraries(pssch_ue srslte_phy srslte_common srslte_rf pthread)
if(SRSGUI_FOUND)
target_link_libraries(pssch_ue ${SRSGUI_LIBRARIES})
endif(SRSGUI_FOUND)
message(STATUS " examples will be installed.") message(STATUS " examples will be installed.")
else(RF_FOUND) else(RF_FOUND)

Loading…
Cancel
Save