fix nr optional linking

master
Francisco Paisana 5 years ago
parent b68ef69ab4
commit 6735199728

@ -35,26 +35,17 @@ endif (RPATH)
add_library(enb_cfg_parser parser.cc enb_cfg_parser.cc) add_library(enb_cfg_parser parser.cc enb_cfg_parser.cc)
add_executable(srsenb main.cc enb.cc metrics_stdout.cc metrics_csv.cc) add_executable(srsenb main.cc enb.cc metrics_stdout.cc metrics_csv.cc)
target_link_libraries(srsenb srsenb_phy
srsenb_stack set(SRSENB_SOURCES srsenb_phy srsenb_stack srsenb_upper srsenb_mac srsenb_rrc)
srsenb_upper set(SRSLTE_SOURCES srslte_common srslte_mac srslte_phy srslte_upper srslte_radio rrc_asn1 s1ap_asn1 enb_cfg_parser)
srsenb_mac
srsenb_rrc if(ENABLE_5GNR)
srsgnb_phy set(SRSENB_SOURCES ${SRSENB_SOURCES} srsgnb_phy srsgnb_stack srsgnb_upper srsgnb_mac srsgnb_rrc)
srsgnb_stack set(SRSLTE_SOURCES ${SRSLTE_SOURCES} rrc_nr_asn1 ngap_nr_asn1)
srsgnb_upper endif()
srsgnb_mac
srsgnb_rrc target_link_libraries(srsenb ${SRSENB_SOURCES}
srslte_common ${SRSLTE_SOURCES}
srslte_mac
srslte_phy
srslte_upper
srslte_radio
rrc_asn1
s1ap_asn1
enb_cfg_parser
rrc_nr_asn1
ngap_nr_asn1
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${SEC_LIBRARIES} ${SEC_LIBRARIES}

@ -31,22 +31,17 @@ if (RPATH)
endif (RPATH) endif (RPATH)
add_executable(srsue main.cc ue.cc metrics_stdout.cc metrics_csv.cc) add_executable(srsue main.cc ue.cc metrics_stdout.cc metrics_csv.cc)
target_link_libraries(srsue srsue_phy
srsue_stack set(SRSUE_SOURCES srsue_phy srsue_stack srsue_upper srsue_mac srsue_rrc)
srsue_upper set(SRSLTE_SOURCES srslte_common srslte_mac srslte_phy srslte_radio srslte_upper rrc_asn1)
srsue_mac
srsue_rrc if(ENABLE_5GNR)
srsue_nr_stack set(SRSUE_SOURCES ${SRSUE_SOURCES} srsue_nr_stack srsue_rrc_nr srsue_mac_nr)
srsue_rrc_nr set(SRSLTE_SOURCES ${SRSLTE_SOURCES} rrc_nr_asn1 ngap_nr_asn1)
srsue_mac_nr endif()
srslte_common
srslte_mac target_link_libraries(srsue ${SRSUE_SOURCES}
srslte_phy ${SRSLTE_SOURCES}
srslte_radio
srslte_upper
rrc_asn1
rrc_nr_asn1
ngap_nr_asn1
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}) ${Boost_LIBRARIES})

Loading…
Cancel
Save