root / gr-atsc / src / python / CMakeLists.txt @ 116f8234
History | View | Annotate | Download (2 kB)
| 1 | # Copyright 2011-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 | ######################################################################## |
| 21 | # Install python examples |
| 22 | ######################################################################## |
| 23 | include(GrPython) |
| 24 | |
| 25 | GR_PYTHON_INSTALL( |
| 26 | PROGRAMS |
| 27 | btl-fsd.py |
| 28 | fpll.py |
| 29 | interp.py |
| 30 | xlate.py |
| 31 | viterbi-out.py |
| 32 | DESTINATION ${GR_PKG_DATA_DIR}/examples/atsc
|
| 33 | COMPONENT "atsc_examples" |
| 34 | ) |
| 35 | |
| 36 | install( |
| 37 | FILES README |
| 38 | DESTINATION ${GR_PKG_DATA_DIR}/examples/atsc
|
| 39 | COMPONENT "atsc_examples" |
| 40 | ) |
| 41 | |
| 42 | ######################################################################## |
| 43 | # Handle the unit tests |
| 44 | ######################################################################## |
| 45 | if(ENABLE_TESTING) |
| 46 | include(GrTest) |
| 47 | file(GLOB py_qa_test_files "qa_*.py") |
| 48 | foreach(py_qa_test_file ${py_qa_test_files})
|
| 49 | get_filename_component(py_qa_test_name ${py_qa_test_file} NAME_WE)
|
| 50 | set(GR_TEST_PYTHON_DIRS |
| 51 | ${CMAKE_BINARY_DIR}/gnuradio-core/src/python
|
| 52 | ${CMAKE_BINARY_DIR}/gnuradio-core/src/lib/swig
|
| 53 | ${CMAKE_BINARY_DIR}/gr-atsc/src/lib
|
| 54 | ) |
| 55 | set(GR_TEST_TARGET_DEPS volk gruel gnuradio-core gnuradio-atsc) |
| 56 | GR_ADD_TEST(${py_qa_test_name} ${PYTHON_EXECUTABLE} ${PYTHON_DASH_B} ${py_qa_test_file})
|
| 57 | endforeach(py_qa_test_file) |
| 58 | endif(ENABLE_TESTING) |