diff options
-rw-r--r-- | gr-uhd/swig/CMakeLists.txt | 4 | ||||
-rw-r--r-- | gr-uhd/swig/uhd_swig.i | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gr-uhd/swig/CMakeLists.txt b/gr-uhd/swig/CMakeLists.txt index 4c778b05c..7aa461cca 100644 --- a/gr-uhd/swig/CMakeLists.txt +++ b/gr-uhd/swig/CMakeLists.txt @@ -29,6 +29,10 @@ set(GR_SWIG_INCLUDE_DIRS ${GR_UHD_INCLUDE_DIRS} ${GNURADIO_CORE_SWIG_INCLUDE_DIRS} ) + +set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/uhd_swig_doc.i) +set(GR_SWIG_DOC_DIRS ${GR_UHD_INCLUDE_DIRS}) + link_directories(${UHD_LIBRARY_DIRS}) set(GR_SWIG_LIBRARIES gnuradio-uhd ${UHD_LIBRARIES}) diff --git a/gr-uhd/swig/uhd_swig.i b/gr-uhd/swig/uhd_swig.i index 6ff9d9843..0b2f9febc 100644 --- a/gr-uhd/swig/uhd_swig.i +++ b/gr-uhd/swig/uhd_swig.i @@ -34,6 +34,9 @@ //////////////////////////////////////////////////////////////////////// %include "gnuradio.i" +//load generated python docstrings +%include "uhd_swig_doc.i" + //////////////////////////////////////////////////////////////////////// // block headers //////////////////////////////////////////////////////////////////////// |