File: CMakeLists.txt

package info (click to toggle)
gr-dab 0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,272 kB
  • sloc: python: 14,976; cpp: 6,738; ansic: 547; makefile: 19; sh: 11
file content (85 lines) | stat: -rw-r--r-- 2,582 bytes parent folder | download
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
# Copyright 2020 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#

########################################################################
# Check if there is C++ code at all
########################################################################
if(NOT dab_sources)
    MESSAGE(STATUS "No C++ sources... skipping python bindings")
    return()
endif(NOT dab_sources)

########################################################################
# Check for pygccxml
########################################################################
GR_PYTHON_CHECK_MODULE_RAW(
    "pygccxml"
    "import pygccxml"
    PYGCCXML_FOUND
    )

include(GrPybind)

########################################################################
# Python Bindings
########################################################################

list(APPEND dab_python_files
    complex_to_interleaved_float_vcf_python.cc
    control_stream_to_tag_cc_python.cc
    crc16_bb_python.cc
    diff_phasor_vcc_python.cc
    estimate_sample_rate_bf_python.cc
    fib_sink_vb_python.cc
    firecode_check_bb_python.cc
    fractional_interpolator_triggered_update_cc_python.cc
    frequency_interleaver_vcc_python.cc
    insert_null_symbol_python.cc
    magnitude_equalizer_vcc_python.cc
    measure_processing_rate_python.cc
    modulo_ff_python.cc
    moving_sum_ff_python.cc
    mp2_decode_bs_python.cc
    mp4_decode_bs_python.cc
    ofdm_coarse_frequency_correct_python.cc
    ofdm_ffe_all_in_one_python.cc
    ofdm_insert_pilot_vcc_python.cc
    ofdm_move_and_insert_zero_python.cc
    ofdm_remove_first_symbol_vcc_python.cc
    ofdm_sampler_python.cc
    peak_detector_fb_python.cc
    prune_python.cc
    prune_vectors_python.cc
    puncture_bb_python.cc
    qpsk_demapper_vcb_python.cc
    qpsk_mapper_vbc_python.cc
    reed_solomon_decode_bb_python.cc
    repartition_vectors_python.cc
    select_subch_vfvf_python.cc
    select_vectors_python.cc
    sum_phasor_trig_vcc_python.cc
    time_deinterleave_ff_python.cc
    unpuncture_ff_python.cc
    unpuncture_vff_python.cc
    valve_ff_python.cc
    xrun_monitor_cc_python.cc
    python_bindings.cc)

GR_PYBIND_MAKE_OOT(dab
   ../../..
   gr::dab
   "${dab_python_files}")

# copy in bindings .so file for use in QA test module
add_custom_target(
  copy_bindings_for_tests ALL
  COMMAND
    ${CMAKE_COMMAND} -E copy "${CMAKE_CURRENT_BINARY_DIR}/*.so"
    ${CMAKE_CURRENT_BINARY_DIR}/..
  DEPENDS dab_python)

install(TARGETS dab_python DESTINATION ${GR_PYTHON_DIR}/gnuradio/dab COMPONENT pythonapi)