PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/gnuradio-3.6.1/gr-fft/swig/CMakeLists.txt

#
CMake | 51 lines | 23 code | 7 blank | 21 comment | 0 complexity | 046d14015865aa0825c73065c0bfb267 MD5 | raw file
Possible License(s): GPL-3.0, BSD-3-Clause
  1. # Copyright 2012 Free Software Foundation, Inc.
  2. #
  3. # This file is part of GNU Radio
  4. #
  5. # GNU Radio is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 3, or (at your option)
  8. # any later version.
  9. #
  10. # GNU Radio is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # You should have received a copy of the GNU General Public License
  16. # along with GNU Radio; see the file COPYING. If not, write to
  17. # the Free Software Foundation, Inc., 51 Franklin Street,
  18. # Boston, MA 02110-1301, USA.
  19. ########################################################################
  20. # Setup swig generation
  21. ########################################################################
  22. include(GrPython)
  23. include(GrSwig)
  24. set(GR_SWIG_INCLUDE_DIRS
  25. ${GR_FFT_INCLUDE_DIRS}
  26. ${GNURADIO_CORE_SWIG_INCLUDE_DIRS}
  27. ${FFTW3F_INCLUDE_DIRS}
  28. )
  29. set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/fft_swig_doc.i)
  30. set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include/fft)
  31. set(GR_SWIG_LIBRARIES gnuradio-fft)
  32. GR_SWIG_MAKE(fft_swig fft_swig.i)
  33. GR_SWIG_INSTALL(
  34. TARGETS fft_swig
  35. DESTINATION ${GR_PYTHON_DIR}/gnuradio/fft
  36. COMPONENT "fft_python"
  37. )
  38. install(
  39. FILES
  40. fft_swig.i
  41. ${CMAKE_CURRENT_BINARY_DIR}/fft_swig_doc.i
  42. DESTINATION ${GR_INCLUDE_DIR}/gnuradio/swig
  43. COMPONENT "fft_swig"
  44. )