mirror of https://github.com/pvnis/srsRAN_4G.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.5 KiB
CMake
85 lines
2.5 KiB
CMake
#
|
|
# Copyright 2013-2015 Software Radio Systems Limited
|
|
#
|
|
# This file is part of the srsLTE library.
|
|
#
|
|
# srsLTE is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of
|
|
# the License, or (at your option) any later version.
|
|
#
|
|
# srsLTE is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# A copy of the GNU Affero General Public License can be found in
|
|
# the LICENSE file in the top-level directory of this distribution
|
|
# and at http://www.gnu.org/licenses/.
|
|
#
|
|
|
|
|
|
#################################################################
|
|
# Applications
|
|
#################################################################
|
|
|
|
add_executable(synch_file synch_file.c)
|
|
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 pthread)
|
|
|
|
add_executable(pdsch_enodeb pdsch_enodeb.c)
|
|
target_link_libraries(pdsch_enodeb srslte_phy pthread)
|
|
|
|
if(RF_FOUND)
|
|
|
|
else(RF_FOUND)
|
|
add_definitions(-DDISABLE_RF)
|
|
endif(RF_FOUND)
|
|
|
|
find_package(SRSGUI)
|
|
|
|
if(SRSGUI_FOUND)
|
|
include_directories(${SRSGUI_INCLUDE_DIRS})
|
|
target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})
|
|
else(SRSGUI_FOUND)
|
|
add_definitions(-DDISABLE_GRAPHICS)
|
|
endif(SRSGUI_FOUND)
|
|
|
|
|
|
#################################################################
|
|
# These examples need the UHD driver
|
|
#################################################################
|
|
|
|
if(RF_FOUND)
|
|
|
|
add_executable(cell_search cell_search.c)
|
|
target_link_libraries(cell_search srslte_phy)
|
|
|
|
add_executable(cell_measurement cell_measurement.c)
|
|
target_link_libraries(cell_measurement srslte_phy)
|
|
|
|
add_executable(usrp_capture usrp_capture.c)
|
|
target_link_libraries(usrp_capture srslte_phy)
|
|
|
|
add_executable(usrp_capture_sync usrp_capture_sync.c)
|
|
target_link_libraries(usrp_capture_sync srslte_phy)
|
|
|
|
add_executable(usrp_txrx usrp_txrx.c)
|
|
target_link_libraries(usrp_txrx srslte_phy)
|
|
|
|
message(STATUS " examples will be installed.")
|
|
|
|
else(RF_FOUND)
|
|
message(STATUS " examples will NOT BE INSTALLED.")
|
|
endif(RF_FOUND)
|
|
|
|
# Add subdirectories
|
|
add_subdirectory(tutorial_examples)
|
|
|