blob: da02515616d141b5903add3e62ec41f14e1f5d80 [file] [log] [blame]
piotr437f5462014-02-04 17:57:25 +01001# Copyright 2011,2012 Free Software Foundation, Inc.
2#
3# This file is part of GNU Radio
4#
5# GNU Radio is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3, or (at your option)
8# any later version.
9#
10# GNU Radio is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with GNU Radio; see the file COPYING. If not, write to
17# the Free Software Foundation, Inc., 51 Franklin Street,
18# Boston, MA 02110-1301, USA.
19
20########################################################################
21# Setup library
22########################################################################
23include(GrPlatform) #define LIB_SUFFIX
24
ptrkrysik18b631e2014-12-15 09:09:18 +010025include_directories(${Boost_INCLUDE_DIR} receiver)
piotr437f5462014-02-04 17:57:25 +010026link_directories(${Boost_LIBRARY_DIRS})
ptrkrysika25b8302015-05-08 08:59:17 +020027list(APPEND grgsm_sources
piotr7f3f3662014-07-08 16:47:53 +020028 receiver/receiver_impl.cc
Roman Khassraf8851d662015-06-07 16:42:37 +020029 receiver/receiver_config.cc
30 receiver/viterbi_detector.cc
piotr501c51e2014-07-08 23:24:07 +020031 receiver/sch.c
ptrkrysikf8c7e832015-04-04 12:28:20 +020032 receiver/clock_offset_control_impl.cc
piotrc00ce9c2014-08-04 11:21:24 +020033 misc_utils/bursts_printer_impl.cc
piotrdda22272014-08-04 11:31:54 +020034 misc_utils/extract_system_info_impl.cc
ptrkrysik6dded652014-11-19 11:32:05 +010035 demapping/universal_ctrl_chans_demapper_impl.cc
Roman Khassraffb6bc502015-04-14 15:44:40 +020036 demapping/tch_f_chans_demapper_impl.cc
piotrfaacc722014-07-20 23:48:32 +020037 decoding/control_channels_decoder_impl.cc
38 decoding/cch.c
39 decoding/fire_crc.c
Roman Khassraf059bab92015-05-20 12:49:46 +020040 decoding/tch_f_decoder_impl.cc
Roman Khassrafd38206c2015-06-07 16:26:29 +020041 decoding/AmrCoder.cpp
Roman Khassraf059bab92015-05-20 12:49:46 +020042 decoding/BitVector.cpp
43 decoding/GSM610Tables.cpp
44 decoding/GSM660Tables.cpp
Roman Khassrafd38206c2015-06-07 16:26:29 +020045 decoding/GSM503Tables.cpp
Roman Khassrafd71e6582015-06-02 08:49:12 +020046 decoding/ViterbiR204.cpp
piotr4089c1a2014-08-06 14:10:56 +020047 misc_utils/controlled_rotator_cc_impl.cc
48 misc_utils/controlled_const_source_f_impl.cc
49 misc_utils/message_printer_impl.cc
ptrkrysikdd700c12015-01-15 11:47:38 +010050 misc_utils/tmsi_dumper_impl.cc
Roman Khassrafcd5a48b2015-05-28 19:23:55 +020051 misc_utils/burst_sink_impl.cc
52 misc_utils/burst_source_impl.cc
ptrkrysik18b631e2014-12-15 09:09:18 +010053 decryption/decryption_impl.cc
ptrkrysika25b8302015-05-08 08:59:17 +020054 )
piotr437f5462014-02-04 17:57:25 +010055
ptrkrysika25b8302015-05-08 08:59:17 +020056add_library(gnuradio-gsm SHARED ${grgsm_sources})
ptrkrysikaea7f342014-12-03 00:37:57 +010057target_link_libraries(gnuradio-gsm ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${VOLK_LIBRARIES}
ptrkrysik30f39452014-12-05 18:25:58 +010058# libraries required by plotting.h - have troubles to be installed by pybombs
59# boost_iostreams
60# boost_system
61# boost_filesystem
piotr3f1ea812014-04-17 10:56:08 +020062)
piotr437f5462014-02-04 17:57:25 +010063set_target_properties(gnuradio-gsm PROPERTIES DEFINE_SYMBOL "gnuradio_gsm_EXPORTS")
64
65########################################################################
66# Install built library files
67########################################################################
68install(TARGETS gnuradio-gsm
69 LIBRARY DESTINATION lib${LIB_SUFFIX} # .so/.dylib file
70 ARCHIVE DESTINATION lib${LIB_SUFFIX} # .lib file
71 RUNTIME DESTINATION bin # .dll file
72)
73
74########################################################################
75# Build and register unit test
76########################################################################
piotr7f3f3662014-07-08 16:47:53 +020077#include(GrTest)
piotr437f5462014-02-04 17:57:25 +010078
piotr7f3f3662014-07-08 16:47:53 +020079#include_directories(${CPPUNIT_INCLUDE_DIRS})
piotr437f5462014-02-04 17:57:25 +010080
ptrkrysika25b8302015-05-08 08:59:17 +020081#list(APPEND test_grgsm_sources
piotr7f3f3662014-07-08 16:47:53 +020082# ${CMAKE_CURRENT_SOURCE_DIR}/test_gsm.cc
83# ${CMAKE_CURRENT_SOURCE_DIR}/qa_gsm.cc
84# ${CMAKE_CURRENT_SOURCE_DIR}/qa_receiver.cc
85#)
piotr437f5462014-02-04 17:57:25 +010086
ptrkrysika25b8302015-05-08 08:59:17 +020087#add_executable(test-gsm ${test_grgsm_sources})
piotr437f5462014-02-04 17:57:25 +010088
piotr7f3f3662014-07-08 16:47:53 +020089#target_link_libraries(
90# test-gsm
91# ${GNURADIO_RUNTIME_LIBRARIES}
92# ${Boost_LIBRARIES}
93# ${CPPUNIT_LIBRARIES}
94# gnuradio-gsm
95#)
piotr437f5462014-02-04 17:57:25 +010096
piotr7f3f3662014-07-08 16:47:53 +020097#GR_ADD_TEST(test_gsm test-gsm)