-
Notifications
You must be signed in to change notification settings - Fork 152
/
Copy pathCMakeLists.txt
106 lines (95 loc) · 3.32 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright 2011,2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GNU Radio 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GNU Radio; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
########################################################################
# Setup library
########################################################################
include(GrPlatform) #define LIB_SUFFIX
list(APPEND lte_sources
mib_unpack_vbm_impl.cc
crc_check_vbvb_impl.cc
bch_crc_check_ant_chooser_bb_impl.cc
subblock_deinterleaver_vfvf_impl.cc
pbch_descrambler_vfvf_impl.cc
repeat_message_source_vf_impl.cc
qpsk_soft_demod_vcvf_impl.cc
layer_demapper_vcvc_impl.cc
pre_decoder_vcvc_impl.cc
pbch_demux_vcvc_impl.cc
channel_estimator_vcvc_impl.cc
extract_subcarriers_vcvc_impl.cc
remove_cp_cvc_impl.cc
sss_calculator_vcm_impl.cc
pcfich_unpack_vfm_impl.cc
rough_symbol_sync_cc_impl.cc
pss_symbol_selector_cvc_impl.cc
pss_calculator_vcm_impl.cc
pss_tagger_cc_impl.cc
correlator.cc
sss_symbol_selector_cvc_impl.cc
sss_tagger_cc_impl.cc
sync_frequency_c_impl.cc
descrambler_vfvf_impl.cc
pcfich_demux_vcvc_impl.cc
mimo_pss_coarse_sync_impl.cc
mimo_pss_fine_sync_impl.cc
mimo_pss_tagger_impl.cc
mimo_pss_coarse_control_impl.cc
pss.cc
mimo_pss_freq_sync_impl.cc
mimo_sss_symbol_selector_impl.cc
mimo_sss_calculator_impl.cc
mimo_sss_tagger_impl.cc
mimo_remove_cp_impl.cc )
list(APPEND lte_libs
${Boost_LIBRARIES}
${GNURADIO_RUNTIME_LIBRARIES}
${VOLK_LIBRARIES}
${FFTW3F_LIBRARIES}
)
add_library(gnuradio-lte SHARED ${lte_sources})
target_link_libraries(gnuradio-lte ${lte_libs})
set_target_properties(gnuradio-lte PROPERTIES DEFINE_SYMBOL "gnuradio_lte_EXPORTS")
########################################################################
# Install built library files
########################################################################
install(TARGETS gnuradio-lte
LIBRARY DESTINATION lib${LIB_SUFFIX} # .so/.dylib file
ARCHIVE DESTINATION lib${LIB_SUFFIX} # .lib file
RUNTIME DESTINATION bin # .dll file
)
########################################################################
# Build and register unit test
########################################################################
include(GrTest)
include_directories(${CPPUNIT_INCLUDE_DIRS})
list(APPEND test_lte_sources
${CMAKE_CURRENT_SOURCE_DIR}/test_lte.cc
${CMAKE_CURRENT_SOURCE_DIR}/qa_lte.cc
# ${CMAKE_CURRENT_SOURCE_DIR}/qa_correlator.cc
)
add_executable(test-lte ${test_lte_sources})
target_link_libraries(
test-lte
${GNURADIO_RUNTIME_LIBRARIES}
${Boost_LIBRARIES}
${CPPUNIT_LIBRARIES}
${FILTER_LIBRARIES}
gnuradio-lte
)
GR_ADD_TEST(test_lte test-lte)