Statistics
| Branch: | Tag: | Revision:

root / gr-filter / python / CMakeLists.txt @ a5a03740

History | View | Annotate | Download (1.8 kB)

1 f64b971f Tom Rondeau
# Copyright 2012 Free Software Foundation, Inc.
2 f64b971f Tom Rondeau
#
3 f64b971f Tom Rondeau
# This file is part of GNU Radio
4 f64b971f Tom Rondeau
#
5 f64b971f Tom Rondeau
# GNU Radio is free software; you can redistribute it and/or modify
6 f64b971f Tom Rondeau
# it under the terms of the GNU General Public License as published by
7 f64b971f Tom Rondeau
# the Free Software Foundation; either version 3, or (at your option)
8 f64b971f Tom Rondeau
# any later version.
9 f64b971f Tom Rondeau
#
10 f64b971f Tom Rondeau
# GNU Radio is distributed in the hope that it will be useful,
11 f64b971f Tom Rondeau
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12 f64b971f Tom Rondeau
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 f64b971f Tom Rondeau
# GNU General Public License for more details.
14 f64b971f Tom Rondeau
#
15 f64b971f Tom Rondeau
# You should have received a copy of the GNU General Public License
16 f64b971f Tom Rondeau
# along with GNU Radio; see the file COPYING.  If not, write to
17 f64b971f Tom Rondeau
# the Free Software Foundation, Inc., 51 Franklin Street,
18 f64b971f Tom Rondeau
# Boston, MA 02110-1301, USA.
19 f64b971f Tom Rondeau
20 f64b971f Tom Rondeau
########################################################################
21 f64b971f Tom Rondeau
include(GrPython)
22 f64b971f Tom Rondeau
23 f64b971f Tom Rondeau
GR_PYTHON_INSTALL(
24 f64b971f Tom Rondeau
    FILES
25 f64b971f Tom Rondeau
    __init__.py
26 a5a03740 Tom Rondeau
    optfir.py
27 4f08cb7e Tom Rondeau
    pfb.py
28 a5a03740 Tom Rondeau
    rational_resampler.py
29 f64b971f Tom Rondeau
    DESTINATION ${GR_PYTHON_DIR}/gnuradio/filter
30 f64b971f Tom Rondeau
    COMPONENT "filter_python"
31 f64b971f Tom Rondeau
)
32 f64b971f Tom Rondeau
33 f64b971f Tom Rondeau
########################################################################
34 f64b971f Tom Rondeau
# Handle the unit tests
35 f64b971f Tom Rondeau
########################################################################
36 f64b971f Tom Rondeau
if(ENABLE_TESTING)
37 f64b971f Tom Rondeau
include(GrTest)
38 f64b971f Tom Rondeau
file(GLOB py_qa_test_files "qa_*.py")
39 f64b971f Tom Rondeau
foreach(py_qa_test_file ${py_qa_test_files})
40 f64b971f Tom Rondeau
    get_filename_component(py_qa_test_name ${py_qa_test_file} NAME_WE)
41 f64b971f Tom Rondeau
    set(GR_TEST_PYTHON_DIRS
42 f64b971f Tom Rondeau
        ${CMAKE_BINARY_DIR}/gnuradio-core/src/python
43 f64b971f Tom Rondeau
        ${CMAKE_BINARY_DIR}/gnuradio-core/src/lib/swig
44 f64b971f Tom Rondeau
        ${CMAKE_BINARY_DIR}/gr-filter/python
45 f64b971f Tom Rondeau
        ${CMAKE_BINARY_DIR}/gr-filter/swig
46 f64b971f Tom Rondeau
    )
47 f64b971f Tom Rondeau
    set(GR_TEST_TARGET_DEPS gruel gnuradio-core gnuradio-filter)
48 f64b971f Tom Rondeau
    GR_ADD_TEST(${py_qa_test_name} ${PYTHON_EXECUTABLE} ${py_qa_test_file})
49 f64b971f Tom Rondeau
endforeach(py_qa_test_file)
50 f64b971f Tom Rondeau
endif(ENABLE_TESTING)