summaryrefslogtreecommitdiff
path: root/gr-uhd/python/uhd/bindings/CMakeLists.txt
blob: 952d30278a4c6c566562ffc8a33a2b06ff2eef05 (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
34
35
include(GrPybind)

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

list(APPEND uhd_python_files
  uhd_types_python.cc
  amsg_source_python.cc
  usrp_block_python.cc
  usrp_sink_python.cc
  usrp_source_python.cc
  python_bindings.cc
  )

if(ENABLE_UHD_RFNOC)
  add_definitions(-DGR_ENABLE_UHD_RFNOC)
  list(APPEND uhd_python_files
    rfnoc_block_python.cc
    rfnoc_ddc_python.cc
    rfnoc_duc_python.cc
    rfnoc_graph_python.cc
    rfnoc_rx_radio_python.cc
    rfnoc_rx_streamer_python.cc
    rfnoc_tx_radio_python.cc
    rfnoc_tx_streamer_python.cc
    )
endif()

GR_PYBIND_MAKE(uhd
  ../../..
  gr::uhd
  "${uhd_python_files}")

install(TARGETS uhd_python DESTINATION ${GR_PYTHON_DIR}/gnuradio/uhd COMPONENT pythonapi)