blob: a4a4338f79a2ee56fe1b2094718393cb583c2692 [file] [log] [blame]
piotr437f5462014-02-04 17:57:25 +01001# Copyright 2011 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# Include python install macros
22########################################################################
23include(GrPython)
24if(NOT PYTHONINTERP_FOUND)
25 return()
26endif()
27
28########################################################################
29# Install python sources
30########################################################################
Piotr Krysik0945cc52017-09-13 09:17:50 +020031add_subdirectory(misc_utils)
32add_subdirectory(receiver)
33add_subdirectory(demapping)
34
piotr437f5462014-02-04 17:57:25 +010035GR_PYTHON_INSTALL(
36 FILES
Piotr Krysik0945cc52017-09-13 09:17:50 +020037 __init__.py DESTINATION ${GR_PYTHON_DIR}/grgsm
piotr437f5462014-02-04 17:57:25 +010038)
39
40########################################################################
41# Handle the unit tests
42########################################################################
Roman Khassraf9f1cfce2015-07-21 10:57:07 +020043include(GrTest)
piotr437f5462014-02-04 17:57:25 +010044
Roman Khassraf9f1cfce2015-07-21 10:57:07 +020045set(GR_TEST_TARGET_DEPS gr-gsm)
Roman Khassraffb772f82016-09-23 07:23:05 +020046set(GR_TEST_PYTHON_DIRS ${CMAKE_BINARY_DIR}/swig:${CMAKE_BINARY_DIR}/python/misc_utils)
Piotr Krysik9b5617a2017-09-18 21:36:06 +020047GR_ADD_TEST(qa_arfcn ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_arfcn.py)
Roman Khassraf9f1cfce2015-07-21 10:57:07 +020048GR_ADD_TEST(qa_decryption ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_decryption.py)
Roman Khassraf298700d2015-07-25 15:35:58 +020049GR_ADD_TEST(qa_burst_printer ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_burst_printer.py)
Roman Khassraffa92b612015-07-29 11:34:31 +020050GR_ADD_TEST(qa_message_printer ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_message_printer.py)
Roman Khassrafdbc3a502015-08-03 23:20:20 +020051GR_ADD_TEST(qa_burst_timeslot_splitter ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_burst_timeslot_splitter.py)
Roman Khassrafa1eb1882015-08-05 12:30:29 +020052GR_ADD_TEST(qa_burst_sdcch_subslot_splitter ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_burst_sdcch_subslot_splitter.py)
Roman Khassrafd7e3eec2015-08-06 11:54:22 +020053GR_ADD_TEST(qa_burst_timeslot_filter ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_burst_timeslot_filter.py)
Roman Khassraf8b64d872015-08-06 17:30:04 +020054GR_ADD_TEST(qa_burst_sdcch_subslot_filter ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_burst_sdcch_subslot_filter.py)
Roman Khassraf8e3b0ec2015-08-04 11:16:04 +020055GR_ADD_TEST(qa_burst_fnr_filter ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_burst_fnr_filter.py)
Roman Khassraf7cccb522015-08-04 12:26:54 +020056GR_ADD_TEST(qa_dummy_burst_filter ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_dummy_burst_filter.py)
Piotr Krysika6934832016-07-15 13:46:43 +020057#GR_ADD_TEST(qa_msg_to_tag ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_msg_to_tag.py)
58#GR_ADD_TEST(qa_controlled_fractional_resampler_cc ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_controlled_fractional_resampler_cc.py)
Piotr Krysika3405b22016-08-30 21:31:24 +020059#GR_ADD_TEST(qa_uplink_downlink_splitter ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_uplink_downlink_splitter.py)