piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 1 | # 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 | ######################################################################## |
| 23 | include(GrPlatform) #define LIB_SUFFIX |
| 24 | |
ptrkrysik | 18b631e | 2014-12-15 09:09:18 +0100 | [diff] [blame] | 25 | include_directories(${Boost_INCLUDE_DIR} receiver) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 26 | link_directories(${Boost_LIBRARY_DIRS}) |
ptrkrysik | a25b830 | 2015-05-08 08:59:17 +0200 | [diff] [blame] | 27 | list(APPEND grgsm_sources |
piotr | 7f3f366 | 2014-07-08 16:47:53 +0200 | [diff] [blame] | 28 | receiver/receiver_impl.cc |
Roman Khassraf | 8851d66 | 2015-06-07 16:42:37 +0200 | [diff] [blame] | 29 | receiver/receiver_config.cc |
| 30 | receiver/viterbi_detector.cc |
piotr | 501c51e | 2014-07-08 23:24:07 +0200 | [diff] [blame] | 31 | receiver/sch.c |
ptrkrysik | f8c7e83 | 2015-04-04 12:28:20 +0200 | [diff] [blame] | 32 | receiver/clock_offset_control_impl.cc |
rpp | 4f0f3b5 | 2015-06-10 10:23:30 +0200 | [diff] [blame] | 33 | receiver/cx_channel_hopper_impl.cc |
piotr | c00ce9c | 2014-08-04 11:21:24 +0200 | [diff] [blame] | 34 | misc_utils/bursts_printer_impl.cc |
piotr | dda2227 | 2014-08-04 11:31:54 +0200 | [diff] [blame] | 35 | misc_utils/extract_system_info_impl.cc |
ptrkrysik | 6dded65 | 2014-11-19 11:32:05 +0100 | [diff] [blame] | 36 | demapping/universal_ctrl_chans_demapper_impl.cc |
Roman Khassraf | fb6bc50 | 2015-04-14 15:44:40 +0200 | [diff] [blame] | 37 | demapping/tch_f_chans_demapper_impl.cc |
piotr | faacc72 | 2014-07-20 23:48:32 +0200 | [diff] [blame] | 38 | decoding/control_channels_decoder_impl.cc |
| 39 | decoding/cch.c |
| 40 | decoding/fire_crc.c |
Roman Khassraf | 059bab9 | 2015-05-20 12:49:46 +0200 | [diff] [blame] | 41 | decoding/tch_f_decoder_impl.cc |
Roman Khassraf | d38206c | 2015-06-07 16:26:29 +0200 | [diff] [blame] | 42 | decoding/AmrCoder.cpp |
Roman Khassraf | 059bab9 | 2015-05-20 12:49:46 +0200 | [diff] [blame] | 43 | decoding/BitVector.cpp |
| 44 | decoding/GSM610Tables.cpp |
| 45 | decoding/GSM660Tables.cpp |
Roman Khassraf | d38206c | 2015-06-07 16:26:29 +0200 | [diff] [blame] | 46 | decoding/GSM503Tables.cpp |
Roman Khassraf | d71e658 | 2015-06-02 08:49:12 +0200 | [diff] [blame] | 47 | decoding/ViterbiR204.cpp |
piotr | 4089c1a | 2014-08-06 14:10:56 +0200 | [diff] [blame] | 48 | misc_utils/controlled_rotator_cc_impl.cc |
| 49 | misc_utils/controlled_const_source_f_impl.cc |
| 50 | misc_utils/message_printer_impl.cc |
ptrkrysik | dd700c1 | 2015-01-15 11:47:38 +0100 | [diff] [blame] | 51 | misc_utils/tmsi_dumper_impl.cc |
Roman Khassraf | cd5a48b | 2015-05-28 19:23:55 +0200 | [diff] [blame] | 52 | misc_utils/burst_sink_impl.cc |
| 53 | misc_utils/burst_source_impl.cc |
rpp | 4f0f3b5 | 2015-06-10 10:23:30 +0200 | [diff] [blame] | 54 | decryption/decryption_impl.cc ) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 55 | |
ptrkrysik | a25b830 | 2015-05-08 08:59:17 +0200 | [diff] [blame] | 56 | add_library(gnuradio-gsm SHARED ${grgsm_sources}) |
ptrkrysik | aea7f34 | 2014-12-03 00:37:57 +0100 | [diff] [blame] | 57 | target_link_libraries(gnuradio-gsm ${Boost_LIBRARIES} ${GNURADIO_RUNTIME_LIBRARIES} ${VOLK_LIBRARIES} |
ptrkrysik | 30f3945 | 2014-12-05 18:25:58 +0100 | [diff] [blame] | 58 | # libraries required by plotting.h - have troubles to be installed by pybombs |
| 59 | # boost_iostreams |
| 60 | # boost_system |
| 61 | # boost_filesystem |
piotr | 3f1ea81 | 2014-04-17 10:56:08 +0200 | [diff] [blame] | 62 | ) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 63 | set_target_properties(gnuradio-gsm PROPERTIES DEFINE_SYMBOL "gnuradio_gsm_EXPORTS") |
| 64 | |
| 65 | ######################################################################## |
| 66 | # Install built library files |
| 67 | ######################################################################## |
| 68 | install(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 | ######################################################################## |
piotr | 7f3f366 | 2014-07-08 16:47:53 +0200 | [diff] [blame] | 77 | #include(GrTest) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 78 | |
piotr | 7f3f366 | 2014-07-08 16:47:53 +0200 | [diff] [blame] | 79 | #include_directories(${CPPUNIT_INCLUDE_DIRS}) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 80 | |
ptrkrysik | a25b830 | 2015-05-08 08:59:17 +0200 | [diff] [blame] | 81 | #list(APPEND test_grgsm_sources |
piotr | 7f3f366 | 2014-07-08 16:47:53 +0200 | [diff] [blame] | 82 | # ${CMAKE_CURRENT_SOURCE_DIR}/test_gsm.cc |
| 83 | # ${CMAKE_CURRENT_SOURCE_DIR}/qa_gsm.cc |
| 84 | # ${CMAKE_CURRENT_SOURCE_DIR}/qa_receiver.cc |
| 85 | #) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 86 | |
ptrkrysik | a25b830 | 2015-05-08 08:59:17 +0200 | [diff] [blame] | 87 | #add_executable(test-gsm ${test_grgsm_sources}) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 88 | |
piotr | 7f3f366 | 2014-07-08 16:47:53 +0200 | [diff] [blame] | 89 | #target_link_libraries( |
| 90 | # test-gsm |
| 91 | # ${GNURADIO_RUNTIME_LIBRARIES} |
| 92 | # ${Boost_LIBRARIES} |
| 93 | # ${CPPUNIT_LIBRARIES} |
| 94 | # gnuradio-gsm |
| 95 | #) |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 96 | |
piotr | 7f3f366 | 2014-07-08 16:47:53 +0200 | [diff] [blame] | 97 | #GR_ADD_TEST(test_gsm test-gsm) |