File: CMakeLists.txt

package info (click to toggle)
gr-osmosdr 0.2.6-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,184 kB
  • sloc: cpp: 16,440; python: 11,368; xml: 42; ansic: 34; makefile: 16
file content (33 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (2)
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)