2014-03-03 19:09:26 +00:00
|
|
|
#
|
2017-05-30 17:14:41 +00:00
|
|
|
# Copyright 2013-2017 Software Radio Systems Limited
|
2014-03-03 19:09:26 +00:00
|
|
|
#
|
2017-05-30 17:14:41 +00:00
|
|
|
# This file is part of srsLTE
|
2014-03-03 19:09:26 +00:00
|
|
|
#
|
2015-03-20 12:01:08 +00:00
|
|
|
# srsLTE is free software: you can redistribute it and/or modify
|
2015-05-08 15:05:40 +00:00
|
|
|
# it under the terms of the GNU Affero General Public License as
|
2014-03-03 19:09:26 +00:00
|
|
|
# published by the Free Software Foundation, either version 3 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
2015-03-20 12:01:08 +00:00
|
|
|
# srsLTE is distributed in the hope that it will be useful,
|
2014-03-03 19:09:26 +00:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2015-05-08 15:05:40 +00:00
|
|
|
# GNU Affero General Public License for more details.
|
2014-03-03 19:09:26 +00:00
|
|
|
#
|
2015-05-08 15:05:40 +00:00
|
|
|
# A copy of the GNU Affero General Public License can be found in
|
2014-03-03 19:09:26 +00:00
|
|
|
# the LICENSE file in the top-level directory of this distribution
|
|
|
|
# and at http://www.gnu.org/licenses/.
|
|
|
|
#
|
|
|
|
|
2014-03-11 18:42:51 +00:00
|
|
|
|
|
|
|
#################################################################
|
2014-03-15 01:04:21 +00:00
|
|
|
# Applications
|
2014-03-11 18:42:51 +00:00
|
|
|
#################################################################
|
2014-01-28 11:41:17 +00:00
|
|
|
|
2014-03-15 01:04:21 +00:00
|
|
|
add_executable(synch_file synch_file.c)
|
2017-05-18 07:33:32 +00:00
|
|
|
target_link_libraries(synch_file srslte_phy)
|
2014-03-03 19:09:26 +00:00
|
|
|
|
2014-03-04 11:55:55 +00:00
|
|
|
#################################################################
|
2015-03-24 15:11:14 +00:00
|
|
|
# These can be compiled without UHD or graphics support
|
2014-03-04 11:55:55 +00:00
|
|
|
#################################################################
|
|
|
|
|
2016-04-18 09:17:23 +00:00
|
|
|
if(RF_FOUND)
|
2017-06-08 11:34:33 +00:00
|
|
|
add_executable(pdsch_ue pdsch_ue.c)
|
|
|
|
target_link_libraries(pdsch_ue srslte_phy srslte_rf pthread)
|
2016-04-18 11:15:41 +00:00
|
|
|
|
2017-06-08 11:34:33 +00:00
|
|
|
add_executable(pdsch_enodeb pdsch_enodeb.c)
|
|
|
|
target_link_libraries(pdsch_enodeb srslte_phy srslte_rf pthread)
|
2016-04-18 09:17:23 +00:00
|
|
|
else(RF_FOUND)
|
2015-12-07 17:06:56 +00:00
|
|
|
add_definitions(-DDISABLE_RF)
|
2017-06-08 11:34:33 +00:00
|
|
|
|
|
|
|
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)
|
2016-04-18 09:17:23 +00:00
|
|
|
endif(RF_FOUND)
|
2015-01-12 04:06:11 +00:00
|
|
|
|
2016-04-18 09:17:23 +00:00
|
|
|
find_package(SRSGUI)
|
2015-05-13 09:44:01 +00:00
|
|
|
|
2016-04-18 09:17:23 +00:00
|
|
|
if(SRSGUI_FOUND)
|
2015-05-26 12:27:05 +00:00
|
|
|
include_directories(${SRSGUI_INCLUDE_DIRS})
|
2015-04-01 14:55:09 +00:00
|
|
|
target_link_libraries(pdsch_ue ${SRSGUI_LIBRARIES})
|
2016-04-18 09:17:23 +00:00
|
|
|
else(SRSGUI_FOUND)
|
2015-05-08 10:33:33 +00:00
|
|
|
add_definitions(-DDISABLE_GRAPHICS)
|
2016-04-18 09:17:23 +00:00
|
|
|
endif(SRSGUI_FOUND)
|
2014-03-04 11:55:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
# These examples need the UHD driver
|
|
|
|
#################################################################
|
2014-03-03 19:09:26 +00:00
|
|
|
|
2016-04-18 09:17:23 +00:00
|
|
|
if(RF_FOUND)
|
2014-05-02 14:42:42 +00:00
|
|
|
|
2015-05-08 10:33:33 +00:00
|
|
|
add_executable(cell_search cell_search.c)
|
2017-06-08 11:15:35 +00:00
|
|
|
target_link_libraries(cell_search srslte_phy srslte_rf)
|
2014-03-03 19:09:26 +00:00
|
|
|
|
2015-05-08 10:33:33 +00:00
|
|
|
add_executable(cell_measurement cell_measurement.c)
|
2017-06-08 11:15:35 +00:00
|
|
|
target_link_libraries(cell_measurement srslte_phy srslte_rf)
|
2014-10-14 12:46:58 +00:00
|
|
|
|
2015-05-08 10:33:33 +00:00
|
|
|
add_executable(usrp_capture usrp_capture.c)
|
2017-06-08 11:15:35 +00:00
|
|
|
target_link_libraries(usrp_capture srslte_phy srslte_rf)
|
2015-03-24 15:11:14 +00:00
|
|
|
|
2015-05-08 10:33:33 +00:00
|
|
|
add_executable(usrp_capture_sync usrp_capture_sync.c)
|
2017-06-08 11:15:35 +00:00
|
|
|
target_link_libraries(usrp_capture_sync srslte_phy srslte_rf)
|
2015-04-05 14:32:35 +00:00
|
|
|
|
2015-06-05 12:36:46 +00:00
|
|
|
add_executable(usrp_txrx usrp_txrx.c)
|
2017-06-08 11:15:35 +00:00
|
|
|
target_link_libraries(usrp_txrx srslte_phy srslte_rf)
|
2015-06-05 12:36:46 +00:00
|
|
|
|
2016-04-18 09:17:23 +00:00
|
|
|
message(STATUS " examples will be installed.")
|
2014-03-03 19:09:26 +00:00
|
|
|
|
2016-04-18 09:17:23 +00:00
|
|
|
else(RF_FOUND)
|
|
|
|
message(STATUS " examples will NOT BE INSTALLED.")
|
|
|
|
endif(RF_FOUND)
|
2015-05-08 10:33:33 +00:00
|
|
|
|
|
|
|
|