2014-03-03 11:09:26 -08:00
|
|
|
#
|
2015-05-08 08:05:40 -07:00
|
|
|
# Copyright 2013-2015 The srsLTE Developers. See the
|
2014-03-03 11:09:26 -08:00
|
|
|
# COPYRIGHT file at the top-level directory of this distribution.
|
|
|
|
#
|
2015-03-20 05:01:08 -07:00
|
|
|
# This file is part of the srsLTE library.
|
2014-03-03 11:09:26 -08:00
|
|
|
#
|
2015-03-20 05:01:08 -07:00
|
|
|
# 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
|
2014-03-03 11:09:26 -08:00
|
|
|
# published by the Free Software Foundation, either version 3 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
2015-03-20 05:01:08 -07:00
|
|
|
# srsLTE is distributed in the hope that it will be useful,
|
2014-03-03 11:09:26 -08:00
|
|
|
# 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.
|
2014-03-03 11:09:26 -08:00
|
|
|
#
|
2015-05-08 08:05:40 -07:00
|
|
|
# A copy of the GNU Affero General Public License can be found in
|
2014-03-03 11:09:26 -08:00
|
|
|
# the LICENSE file in the top-level directory of this distribution
|
|
|
|
# and at http://www.gnu.org/licenses/.
|
|
|
|
#
|
|
|
|
|
2015-09-17 06:58:35 -07:00
|
|
|
IF(UHD_FOUND)
|
|
|
|
LINK_DIRECTORIES(${UHD_LIBRARY_DIRS})
|
|
|
|
ENDIF(UHD_FOUND)
|
2014-03-11 11:42:51 -07:00
|
|
|
|
2014-03-04 03:55:55 -08:00
|
|
|
#################################################################
|
2014-03-11 11:42:51 -07:00
|
|
|
# EXAMPLES
|
2014-03-04 03:55:55 -08:00
|
|
|
#################################################################
|
2014-01-28 03:41:17 -08:00
|
|
|
|
|
|
|
add_executable(hl_example hl_example.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
target_link_libraries(hl_example srslte)
|
2014-01-28 03:41:17 -08:00
|
|
|
|
|
|
|
add_executable(ll_example ll_example.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
target_link_libraries(ll_example srslte)
|
2014-01-28 03:41:17 -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)
|
2015-03-19 09:09:38 -07:00
|
|
|
target_link_libraries(synch_file srslte)
|
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
|
|
|
#################################################################
|
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(pdsch_ue pdsch_ue.c)
|
|
|
|
target_link_libraries(pdsch_ue srslte pthread)
|
2015-01-11 20:06:11 -08:00
|
|
|
|
|
|
|
add_executable(pdsch_enodeb pdsch_enodeb.c)
|
2015-03-19 09:09:38 -07:00
|
|
|
target_link_libraries(pdsch_enodeb srslte pthread)
|
2015-01-11 20:06:11 -08:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
IF(UHD_FOUND)
|
2015-05-13 02:44:01 -07:00
|
|
|
target_link_libraries(pdsch_ue srslte_uhd)
|
|
|
|
target_link_libraries(pdsch_enodeb srslte_uhd)
|
2015-05-08 03:33:33 -07:00
|
|
|
ELSE(UHD_FOUND)
|
|
|
|
add_definitions(-DDISABLE_UHD)
|
|
|
|
ENDIF(UHD_FOUND)
|
2015-01-11 20:06:11 -08:00
|
|
|
|
2015-05-13 02:44:01 -07:00
|
|
|
FIND_PACKAGE(SRSGUI)
|
|
|
|
|
2015-04-01 07:55:09 -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})
|
|
|
|
ELSE(SRSGUI_FOUND)
|
2015-05-08 03:33:33 -07:00
|
|
|
add_definitions(-DDISABLE_GRAPHICS)
|
2015-04-01 07:55:09 -07:00
|
|
|
ENDIF(SRSGUI_FOUND)
|
2014-03-04 03:55:55 -08:00
|
|
|
|
|
|
|
|
|
|
|
#################################################################
|
|
|
|
# These examples need the UHD driver
|
|
|
|
#################################################################
|
2014-03-03 11:09:26 -08:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
IF(UHD_FOUND)
|
2014-05-02 07:42:42 -07:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(cell_search cell_search.c)
|
2015-05-13 02:44:01 -07:00
|
|
|
target_link_libraries(cell_search srslte srslte_uhd)
|
2014-03-03 11:09:26 -08:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(prach_ue prach_ue.c)
|
2015-05-13 02:44:01 -07:00
|
|
|
target_link_libraries(prach_ue srslte srslte_uhd)
|
2015-02-24 02:19:42 -08:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(cell_measurement cell_measurement.c)
|
2015-05-13 02:44:01 -07:00
|
|
|
target_link_libraries(cell_measurement srslte srslte_uhd)
|
2014-10-14 05:46:58 -07:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
add_executable(usrp_capture usrp_capture.c)
|
2015-05-13 02:44:01 -07:00
|
|
|
target_link_libraries(usrp_capture srslte srslte_uhd)
|
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)
|
2015-05-13 02:44:01 -07:00
|
|
|
target_link_libraries(usrp_capture_sync srslte srslte_uhd)
|
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 srslte_uhd)
|
|
|
|
|
2014-06-27 09:36:25 -07:00
|
|
|
MESSAGE(STATUS " UHD examples will be installed.")
|
2014-03-03 11:09:26 -08:00
|
|
|
|
2015-05-08 03:33:33 -07:00
|
|
|
ELSE(UHD_FOUND)
|
|
|
|
MESSAGE(STATUS " UHD examples NOT INSTALLED.")
|
|
|
|
ENDIF(UHD_FOUND)
|
|
|
|
|
|
|
|
# Add subdirectories
|
|
|
|
add_subdirectory(tutorial_examples)
|
|
|
|
|