# Copyright 2011 Free Software Foundation, Inc.
#
# This file was generated by gr_modtool, a tool from the GNU Radio framework
# This file is a part of gr-satellites
#
# 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.

########################################################################
# Include python install macros
########################################################################
include(GrPython)
if(NOT PYTHONINTERP_FOUND)
    return()
endif()

########################################################################
# Install python sources
########################################################################
GR_PYTHON_INSTALL(
    FILES
    __init__.py
    aalto1_deframer.py
    aausat4_deframer.py
    aistechsat_2_deframer.py
    ao40_fec_deframer.py
    ao40_uncoded_deframer.py
    astrocast_fx25_deframer.py
    ax100_deframer.py
    ax25_deframer.py
    ax5043_deframer.py
    binar1_deframer.py
    binar2_deframer.py
    ccsds_concatenated_deframer.py
    ccsds_rs_deframer.py
    diy1_deframer.py
    endurosat_deframer.py
    eseo_deframer.py
    fossasat_deframer.py
    geoscan_deframer.py
    grizu263a_deframer.py
    hades_deframer.py
    hsu_sat1_deframer.py
    ideassat_deframer.py
    k2sat_deframer.py
    lilacsat_1_deframer.py
    lucky7_deframer.py
    mobitex_deframer.py
    ngham_deframer.py
    nusat_deframer.py
    openlst_deframer.py
    ops_sat_deframer.py
    qubik_deframer.py
    reaktor_hello_world_deframer.py
    sanosat_deframer.py
    sat_3cat_1_deframer.py
    smogp_ra_deframer.py
    smogp_signalling_deframer.py
    snet_deframer.py
    spino_deframer.py
    swiatowid_deframer.py
    tt64_deframer.py
    u482c_deframer.py
    ua01_deframer.py
    usp_deframer.py
    yusat_deframer.py
    DESTINATION ${GR_PYTHON_DIR}/satellites/components/deframers
)

########################################################################
# Handle the unit tests
########################################################################
include(GrTest)

set(GR_TEST_TARGET_DEPS gnuradio-satellites)
set(GR_TEST_PYTHON_DIRS ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/swig)
GR_ADD_TEST(qa_ao40_fec_deframer ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_ao40_fec_deframer.py)
GR_ADD_TEST(qa_mobitex_deframer ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_mobitex_deframer.py)
GR_ADD_TEST(qa_usp_deframer ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_usp_deframer.py)
