blob: d677e7f45ab77ab82b55cb3ee9a5b2044809b6ed [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 Krysik35582082015-09-02 21:49:12 +020022#SET(APPS_DIR ${CMAKE_SOURCE_DIR}/apps)
Piotr Krysik242522f2015-08-13 10:51:59 +020023
Piotr Krysik35582082015-09-02 21:49:12 +020024#SET(GRCC_COMMAND ${PC_GNURADIO_RUNTIME_PREFIX}/${GR_RUNTIME_DIR}/grcc)
25#SET(BLOCK_PATH ../grc/)
Piotr Krysik242522f2015-08-13 10:51:59 +020026
Piotr Krysik35582082015-09-02 21:49:12 +020027#ADD_CUSTOM_TARGET(airprobe_file.py ALL)
28#ADD_CUSTOM_COMMAND(
29# TARGET airprobe_file.py
30# COMMAND GRC_BLOCKS_PATH=${BLOCK_PATH} ${GRCC_COMMAND} -d ${CMAKE_CURRENT_BINARY_DIR}
31# ARGS "airprobe_file.grc"
32# WORKING_DIRECTORY ${APPS_DIR}
33#)
Piotr Krysik242522f2015-08-13 10:51:59 +020034
Piotr Krysik35582082015-09-02 21:49:12 +020035#ADD_CUSTOM_TARGET(airprobe_rtlsdr.py ALL)
36#ADD_CUSTOM_COMMAND(
37# TARGET airprobe_rtlsdr.py
38# COMMAND GRC_BLOCKS_PATH=${BLOCK_PATH} ${GRCC_COMMAND} -d ${CMAKE_CURRENT_BINARY_DIR}
39# ARGS "airprobe_rtlsdr.grc"
40# WORKING_DIRECTORY ${APPS_DIR}
41#)
Piotr Krysik20d2de42015-08-17 14:19:59 +020042
piotr437f5462014-02-04 17:57:25 +010043GR_PYTHON_INSTALL(
Piotr Krysik20d2de42015-08-17 14:19:59 +020044 PROGRAMS
Piotr Krysik35582082015-09-02 21:49:12 +020045# ${CMAKE_CURRENT_BINARY_DIR}/airprobe_rtlsdr.py
46 airprobe_rtlsdr.py
47 airprobe_decode.py
Piotr Krysikc17d9a22015-09-05 02:13:52 +020048 airprobe_rtlsdr_capture.py
piotr437f5462014-02-04 17:57:25 +010049 DESTINATION bin
50)