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.
74 lines
2.6 KiB
CMake
74 lines
2.6 KiB
CMake
11 years ago
|
#
|
||
|
# Copyright 2012-2013 The libLTE Developers. See the
|
||
|
# COPYRIGHT file at the top-level directory of this distribution.
|
||
|
#
|
||
|
# This file is part of the libLTE library.
|
||
|
#
|
||
|
# libLTE is free software: you can redistribute it and/or modify
|
||
|
# it under the terms of the GNU Lesser General Public License as
|
||
|
# published by the Free Software Foundation, either version 3 of
|
||
|
# the License, or (at your option) any later version.
|
||
|
#
|
||
|
# libLTE 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 Lesser General Public License for more details.
|
||
|
#
|
||
|
# A copy of the GNU Lesser 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/.
|
||
|
#
|
||
|
|
||
10 years ago
|
########################################################################
|
||
|
# PROGRAM TO DEBUG PSS FROM USRP
|
||
|
########################################################################
|
||
|
|
||
|
LIST(FIND OPTIONAL_LIBS cuhd CUHD_FIND)
|
||
10 years ago
|
LIST(FIND OPTIONAL_LIBS graphics GRAPHICS_FIND)
|
||
10 years ago
|
|
||
|
IF(${CUHD_FIND} GREATER -1)
|
||
10 years ago
|
ADD_EXECUTABLE(pss_usrp pss_usrp.c)
|
||
|
TARGET_LINK_LIBRARIES(pss_usrp lte_phy cuhd)
|
||
10 years ago
|
IF(${GRAPHICS_FIND} EQUAL -1)
|
||
|
SET_TARGET_PROPERTIES(pss_usrp PROPERTIES COMPILE_DEFINITIONS "DISABLE_GRAPHICS")
|
||
|
ELSE(${GRAPHICS_FIND} EQUAL -1)
|
||
|
target_link_libraries(pss_usrp graphics)
|
||
|
ENDIF(${GRAPHICS_FIND} EQUAL -1)
|
||
10 years ago
|
ENDIF(${CUHD_FIND} GREATER -1)
|
||
10 years ago
|
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
BuildMex(MEXNAME pss SOURCES pss_mex.c LIBRARIES lte_phy liblte_mex)
|
||
10 years ago
|
BuildMex(MEXNAME sss SOURCES sss_mex.c LIBRARIES lte_phy liblte_mex)
|
||
10 years ago
|
|
||
11 years ago
|
########################################################################
|
||
|
# SYNC TEST
|
||
|
########################################################################
|
||
|
|
||
|
ADD_EXECUTABLE(sync_test sync_test.c)
|
||
11 years ago
|
TARGET_LINK_LIBRARIES(sync_test lte_phy)
|
||
11 years ago
|
|
||
10 years ago
|
ADD_TEST(sync_test_100 sync_test -o 100 -c 501)
|
||
|
ADD_TEST(sync_test_400 sync_test -o 400 -c 2)
|
||
|
ADD_TEST(sync_test_100_e sync_test -o 100 -e -c 150)
|
||
|
ADD_TEST(sync_test_400_e sync_test -o 400 -e -c 151)
|
||
10 years ago
|
|
||
10 years ago
|
ADD_TEST(sync_test_100 sync_test -o 100 -p 50 -c 501)
|
||
|
ADD_TEST(sync_test_400 sync_test -o 400 -p 50 -c 500)
|
||
|
ADD_TEST(sync_test_100_e sync_test -o 100 -e -p 50 -c 133)
|
||
|
ADD_TEST(sync_test_400_e sync_test -o 400 -e -p 50 -c 123)
|
||
10 years ago
|
|
||
11 years ago
|
########################################################################
|
||
|
# CFO TEST
|
||
|
########################################################################
|
||
|
|
||
|
ADD_EXECUTABLE(cfo_test cfo_test.c)
|
||
11 years ago
|
TARGET_LINK_LIBRARIES(cfo_test lte_phy)
|
||
11 years ago
|
|
||
|
ADD_TEST(cfo_test_1 cfo_test -f 0.12345 -n 1000)
|
||
|
ADD_TEST(cfo_test_2 cfo_test -f 0.99849 -n 1000)
|
||
|
|
||
|
|
||
|
|
||
|
|