srsLTE/lib/examples/CMakeLists.txt

99 lines
3.3 KiB
CMake
Raw Normal View History

#
2020-03-13 04:12:52 -07:00
# Copyright 2013-2020 Software Radio Systems Limited
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the distribution.
#
#################################################################
2014-03-14 18:04:21 -07:00
# Applications
#################################################################
2014-01-28 03:41:17 -08:00
2014-03-14 18:04:21 -07:00
add_executable(synch_file synch_file.c)
2017-05-18 00:33:32 -07:00
target_link_libraries(synch_file srslte_phy)
#################################################################
2015-03-24 08:11:14 -07:00
# These can be compiled without UHD or graphics support
#################################################################
if(RF_FOUND)
add_executable(pdsch_ue pdsch_ue.c)
target_link_libraries(pdsch_ue srslte_phy srslte_common srslte_rf pthread)
2016-04-18 04:15:41 -07:00
add_executable(pdsch_enodeb pdsch_enodeb.c)
target_link_libraries(pdsch_enodeb srslte_phy srslte_common srslte_rf pthread)
add_executable(npdsch_enodeb npdsch_enodeb.c)
target_link_libraries(npdsch_enodeb srslte_phy srslte_rf pthread)
add_executable(npdsch_ue npdsch_ue.c npdsch_ue_helper.cc)
target_link_libraries(npdsch_ue srslte_common srslte_phy srslte_rf pthread rrc_asn1)
else(RF_FOUND)
add_definitions(-DDISABLE_RF)
add_executable(pdsch_ue pdsch_ue.c)
2018-05-28 07:13:10 -07:00
target_link_libraries(pdsch_ue srslte_common srslte_phy pthread)
add_executable(pdsch_enodeb pdsch_enodeb.c)
2018-05-28 07:13:10 -07:00
target_link_libraries(pdsch_enodeb srslte_common srslte_phy pthread)
add_executable(npdsch_enodeb npdsch_enodeb.c)
target_link_libraries(npdsch_enodeb srslte_phy pthread)
add_executable(npdsch_ue npdsch_ue.c npdsch_ue_helper.cc)
target_link_libraries(npdsch_ue srslte_common srslte_phy pthread rrc_asn1)
endif(RF_FOUND)
2015-01-11 20:06:11 -08:00
if(SRSGUI_FOUND)
2015-05-26 05:27:05 -07:00
include_directories(${SRSGUI_INCLUDE_DIRS})
target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})
target_link_libraries(npdsch_ue ${SRSGUI_LIBRARIES})
2019-04-23 01:53:11 -07:00
add_definitions(-DENABLE_GUI)
endif(SRSGUI_FOUND)
if (ZEROMQ_FOUND)
add_executable(zmq_remote_rx zmq_remote_rx.c)
target_link_libraries(zmq_remote_rx srslte_phy srslte_rf)
endif (ZEROMQ_FOUND)
#################################################################
# These examples need the UHD driver
#################################################################
if(RF_FOUND)
add_executable(cell_search cell_search.c)
target_link_libraries(cell_search srslte_phy srslte_common srslte_rf)
add_executable(usrp_capture usrp_capture.c)
target_link_libraries(usrp_capture srslte_phy srslte_rf)
2015-03-24 08:11:14 -07:00
add_executable(usrp_capture_sync usrp_capture_sync.c)
target_link_libraries(usrp_capture_sync srslte_phy srslte_rf)
2015-04-05 07:32:35 -07:00
add_executable(usrp_capture_sync_nbiot usrp_capture_sync_nbiot.c)
target_link_libraries(usrp_capture_sync_nbiot srslte_rf srslte_phy)
add_executable(cell_search_nbiot cell_search_nbiot.c)
target_link_libraries(cell_search_nbiot srslte_rf srslte_phy)
2015-06-05 05:36:46 -07:00
add_executable(usrp_txrx usrp_txrx.c)
target_link_libraries(usrp_txrx srslte_phy srslte_rf)
2015-06-05 05:36:46 -07:00
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.")
else(RF_FOUND)
message(STATUS " examples will NOT BE INSTALLED.")
2020-03-05 07:09:46 -08:00
endif(RF_FOUND)
# Add eNB/UE IQ test
add_subdirectory(test)