aboutsummaryrefslogtreecommitdiffstats
path: root/python/bindings/CMakeLists.txt
blob: f2233cf20025825f186f4301dcec63bc3c117598 (plain)
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
# Copyright 2020 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#

GR_PYTHON_CHECK_MODULE_RAW(
    "pygccxml"
    "import pygccxml"
    PYGCCXML_FOUND
    )

include(GrPybind)

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

list(APPEND osmosdr_python_files
    device_python.cc
    sink_python.cc
    source_python.cc
    ranges_python.cc
    time_spec_python.cc
    python_bindings.cc)

GR_PYBIND_MAKE_OOT(osmosdr 
   ../..
   gr::osmosdr
   "${osmosdr_python_files}")

install(TARGETS osmosdr_python DESTINATION ${GR_PYTHON_DIR}/osmosdr COMPONENT pythonapi)