Files
gr-ieee802-11/python/bindings/CMakeLists.txt
T
Bastian Bloessl afe85e2c71 python bindings
2021-07-20 12:19:04 +02:00

52 lines
1.4 KiB
CMake

# 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 ieee802_11_sources)
MESSAGE(STATUS "No C++ sources... skipping python bindings")
return()
endif(NOT ieee802_11_sources)
########################################################################
# Check for pygccxml
########################################################################
GR_PYTHON_CHECK_MODULE_RAW(
"pygccxml"
"import pygccxml"
PYGCCXML_FOUND
)
include(GrPybind)
########################################################################
# Python Bindings
########################################################################
list(APPEND ieee802_11_python_files
chunks_to_symbols_python.cc
constellations_python.cc
decode_mac_python.cc
ether_encap_python.cc
extract_csi_python.cc
frame_equalizer_python.cc
mac_python.cc
mapper_python.cc
parse_mac_python.cc
signal_field_python.cc
sync_long_python.cc
sync_short_python.cc
python_bindings.cc)
GR_PYBIND_MAKE_OOT(ieee802_11
../..
gr::ieee802_11
"${ieee802_11_python_files}")
install(TARGETS ieee802_11_python DESTINATION ${GR_PYTHON_DIR}/ieee802_11 COMPONENT pythonapi)