2014-03-03 11:09:26 -08:00
|
|
|
#
|
2021-03-19 03:45:56 -07:00
|
|
|
# Copyright 2013-2021 Software Radio Systems Limited
|
2014-03-03 11:09:26 -08:00
|
|
|
#
|
2020-11-26 01:25:22 -08:00
|
|
|
# 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-03 11:09:26 -08:00
|
|
|
#
|
|
|
|
|
2014-03-11 11:42:51 -07:00
|
|
|
#################################################################
|
2014-03-14 18:04:21 -07:00
|
|
|
# Applications
|
2014-03-11 11:42:51 -07:00
|
|
|
#################################################################
|
2014-01-28 03:41:17 -08:00
|
|
|
|
2014-03-14 18:04:21 -07:00
|
|
|
add_executable(synch_file synch_file.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(synch_file srsran_phy)
|
2014-03-03 11:09:26 -08:00
|
|
|
|
2014-03-04 03:55:55 -08:00
|
|
|
#################################################################
|
2015-03-24 08:11:14 -07:00
|
|
|
# These can be compiled without UHD or graphics support
|
2014-03-04 03:55:55 -08:00
|
|
|
#################################################################
|
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
if(RF_FOUND)
|
2017-06-08 04:34:33 -07:00
|
|
|
add_executable(pdsch_ue pdsch_ue.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(pdsch_ue srsran_phy srsran_common srsran_rf pthread)
|
2016-04-18 04:15:41 -07:00
|
|
|
|
2017-06-08 04:34:33 -07:00
|
|
|
add_executable(pdsch_enodeb pdsch_enodeb.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(pdsch_enodeb srsran_phy srsran_common srsran_rf pthread)
|
2020-01-07 12:05:57 -08:00
|
|
|
|
|
|
|
add_executable(npdsch_enodeb npdsch_enodeb.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(npdsch_enodeb srsran_phy srsran_rf pthread)
|
2020-01-07 12:05:57 -08:00
|
|
|
|
2020-04-15 11:41:16 -07:00
|
|
|
add_executable(npdsch_ue npdsch_ue.c npdsch_ue_helper.cc)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(npdsch_ue srsran_common srsran_phy srsran_rf pthread rrc_asn1)
|
2016-04-18 02:17:23 -07:00
|
|
|
else(RF_FOUND)
|
2015-12-07 09:06:56 -08:00
|
|
|
add_definitions(-DDISABLE_RF)
|
2017-06-08 04:34:33 -07:00
|
|
|
|
|
|
|
add_executable(pdsch_ue pdsch_ue.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(pdsch_ue srsran_common srsran_phy pthread)
|
2017-06-08 04:34:33 -07:00
|
|
|
|
|
|
|
add_executable(pdsch_enodeb pdsch_enodeb.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(pdsch_enodeb srsran_common srsran_phy pthread)
|
2020-01-07 12:05:57 -08:00
|
|
|
|
|
|
|
add_executable(npdsch_enodeb npdsch_enodeb.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(npdsch_enodeb srsran_phy pthread)
|
2020-01-07 12:05:57 -08:00
|
|
|
|
2020-04-19 06:36:24 -07:00
|
|
|
add_executable(npdsch_ue npdsch_ue.c npdsch_ue_helper.cc)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(npdsch_ue srsran_common srsran_phy pthread rrc_asn1)
|
2016-04-18 02:17:23 -07:00
|
|
|
endif(RF_FOUND)
|
2015-01-11 20:06:11 -08:00
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
if(SRSGUI_FOUND)
|
2015-05-26 05:27:05 -07:00
|
|
|
include_directories(${SRSGUI_INCLUDE_DIRS})
|
2015-04-01 07:55:09 -07:00
|
|
|
target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})
|
2020-01-07 12:05:57 -08:00
|
|
|
target_link_libraries(npdsch_ue ${SRSGUI_LIBRARIES})
|
2019-04-23 01:53:11 -07:00
|
|
|
add_definitions(-DENABLE_GUI)
|
2016-04-18 02:17:23 -07:00
|
|
|
endif(SRSGUI_FOUND)
|
2014-03-04 03:55:55 -08:00
|
|
|
|
2019-12-03 00:57:12 -08:00
|
|
|
if (ZEROMQ_FOUND)
|
|
|
|
add_executable(zmq_remote_rx zmq_remote_rx.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(zmq_remote_rx srsran_phy srsran_rf)
|
2019-12-03 00:57:12 -08:00
|
|
|
endif (ZEROMQ_FOUND)
|
2014-03-04 03:55:55 -08:00
|
|
|
|
|
|
|
#################################################################
|
|
|
|
# These examples need the UHD driver
|
|
|
|
#################################################################
|
2014-03-03 11:09:26 -08:00
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
if(RF_FOUND)
|
2014-05-02 07:42:42 -07:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(cell_search cell_search.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(cell_search srsran_phy srsran_common srsran_rf)
|
2014-03-03 11:09:26 -08:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(usrp_capture usrp_capture.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(usrp_capture srsran_phy srsran_rf)
|
2015-03-24 08:11:14 -07:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(usrp_capture_sync usrp_capture_sync.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(usrp_capture_sync srsran_phy srsran_rf)
|
2015-04-05 07:32:35 -07:00
|
|
|
|
2019-11-24 12:34:42 -08:00
|
|
|
add_executable(usrp_capture_sync_nbiot usrp_capture_sync_nbiot.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(usrp_capture_sync_nbiot srsran_rf srsran_phy)
|
2019-11-24 12:34:42 -08:00
|
|
|
|
|
|
|
add_executable(cell_search_nbiot cell_search_nbiot.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(cell_search_nbiot srsran_rf srsran_phy)
|
2019-11-24 12:34:42 -08:00
|
|
|
|
2015-06-05 05:36:46 -07:00
|
|
|
add_executable(usrp_txrx usrp_txrx.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(usrp_txrx srsran_phy srsran_rf)
|
2015-06-05 05:36:46 -07:00
|
|
|
|
2020-03-05 02:33:14 -08:00
|
|
|
add_executable(pssch_ue pssch_ue.c)
|
2021-03-19 03:45:56 -07:00
|
|
|
target_link_libraries(pssch_ue srsran_phy srsran_common srsran_rf pthread)
|
2020-03-05 02:33:14 -08:00
|
|
|
|
|
|
|
if(SRSGUI_FOUND)
|
|
|
|
target_link_libraries(pssch_ue ${SRSGUI_LIBRARIES})
|
|
|
|
endif(SRSGUI_FOUND)
|
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
message(STATUS " examples will be installed.")
|
2014-03-03 11:09:26 -08:00
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
else(RF_FOUND)
|
|
|
|
message(STATUS " examples will NOT BE INSTALLED.")
|
2020-03-05 07:09:46 -08:00
|
|
|
endif(RF_FOUND)
|
2020-01-07 12:05:57 -08:00
|
|
|
|
|
|
|
# Add eNB/UE IQ test
|
|
|
|
add_subdirectory(test)
|