2016-04-08 08:30:02 -07:00
|
|
|
#
|
|
|
|
# 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/.
|
|
|
|
#
|
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
if(RF_FOUND)
|
2016-04-08 08:30:02 -07:00
|
|
|
# Include common RF files
|
2016-04-18 02:17:23 -07:00
|
|
|
set(SOURCES_RF "")
|
|
|
|
list(APPEND SOURCES_RF rf_imp.c rf_utils.c)
|
2016-04-08 08:30:02 -07:00
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
if (UHD_FOUND)
|
2016-04-08 08:30:02 -07:00
|
|
|
add_definitions(-DENABLE_UHD)
|
2016-04-18 02:17:23 -07:00
|
|
|
list(APPEND SOURCES_RF rf_uhd_imp.c uhd_c_api.cpp)
|
|
|
|
endif (UHD_FOUND)
|
2016-04-08 08:30:02 -07:00
|
|
|
|
2016-04-18 02:17:23 -07:00
|
|
|
if (BLADERF_FOUND)
|
2016-04-08 08:30:02 -07:00
|
|
|
add_definitions(-DENABLE_BLADERF)
|
2016-04-18 02:17:23 -07:00
|
|
|
list(APPEND SOURCES_RF rf_blade_imp.c)
|
|
|
|
endif (BLADERF_FOUND)
|
2016-04-08 08:30:02 -07:00
|
|
|
|
2016-04-18 04:15:41 -07:00
|
|
|
add_library(srslte_rf OBJECT ${SOURCES_RF})
|
|
|
|
SRSLTE_SET_PIC(srslte_rf)
|
2016-04-18 02:17:23 -07:00
|
|
|
endif(RF_FOUND)
|