blob: 2dabb0ecb6f6d3f4f556ca11f4c1c7817bb1a6b7 [file] [log] [blame]
piotr437f5462014-02-04 17:57:25 +01001# Copyright 2011 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
20include(GrPython)
21
Piotr Krysik242522f2015-08-13 10:51:59 +020022SET(APPS_DIR ${CMAKE_SOURCE_DIR}/apps)
23
24SET(GRCC_COMMAND ${PC_GNURADIO_RUNTIME_PREFIX}/${GR_RUNTIME_DIR}/grcc)
25
26ADD_CUSTOM_TARGET(airprobe_file.py ALL)
27ADD_CUSTOM_COMMAND(
28 TARGET airprobe_file.py
29 COMMAND ${GRCC_COMMAND} -d ${CMAKE_CURRENT_BINARY_DIR}
30 ARGS "airprobe_file.grc"
31 WORKING_DIRECTORY ${APPS_DIR}
32)
33
34ADD_CUSTOM_TARGET(airprobe_rtlsdr.py ALL)
35ADD_CUSTOM_COMMAND(
36 TARGET airprobe_rtlsdr.py
37 COMMAND ${GRCC_COMMAND} -d ${CMAKE_CURRENT_BINARY_DIR}
38 ARGS "airprobe_rtlsdr.grc"
39 WORKING_DIRECTORY ${APPS_DIR}
40)
ptrkrysik12fe7a02014-11-20 11:10:20 +010041
piotr437f5462014-02-04 17:57:25 +010042GR_PYTHON_INSTALL(
ptrkrysika136ff52014-11-28 23:38:23 +010043 airprobe_file.py
44 airprobe_rtlsdr.py
piotr437f5462014-02-04 17:57:25 +010045 DESTINATION bin
46)