srsLTE/lib/examples/CMakeLists.txt

87 lines
2.8 KiB
CMake
Raw Normal View History

#
2017-05-30 10:14:41 -07:00
# Copyright 2013-2017 Software Radio Systems Limited
#
2017-05-30 10:14:41 -07:00
# This file is part of srsLTE
#
# srsLTE is free software: you can redistribute it and/or modify
2015-05-08 08:05:40 -07:00
# 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
2015-05-08 08:05:40 -07:00
# GNU Affero General Public License for more details.
#
2015-05-08 08:05:40 -07:00
# 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/.
#
#################################################################
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)
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)
endif(RF_FOUND)
2015-01-11 20:06:11 -08:00
find_package(SRSGUI)
2015-05-13 02:44:01 -07:00
if(SRSGUI_FOUND)
2015-05-26 05:27:05 -07:00
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 srslte_common srslte_rf)
add_executable(cell_measurement cell_measurement.c)
target_link_libraries(cell_measurement 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
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
message(STATUS " examples will be installed.")
else(RF_FOUND)
message(STATUS " examples will NOT BE INSTALLED.")
endif(RF_FOUND)