blob: 54b39798a345995fddbc6b37f0be7eacc7348128 [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)
Piotr Krysikb8a26e52015-08-15 21:52:46 +020025SET(BLOCK_PATH ../grc/)
Piotr Krysik242522f2015-08-13 10:51:59 +020026
27ADD_CUSTOM_TARGET(airprobe_file.py ALL)
28ADD_CUSTOM_COMMAND(
29 TARGET airprobe_file.py
Piotr Krysikb8a26e52015-08-15 21:52:46 +020030 COMMAND GRC_BLOCKS_PATH=${BLOCK_PATH} ${GRCC_COMMAND} -d ${CMAKE_CURRENT_BINARY_DIR}
Piotr Krysik242522f2015-08-13 10:51:59 +020031 ARGS "airprobe_file.grc"
32 WORKING_DIRECTORY ${APPS_DIR}
33)
34
35ADD_CUSTOM_TARGET(airprobe_rtlsdr.py ALL)
36ADD_CUSTOM_COMMAND(
37 TARGET airprobe_rtlsdr.py
Piotr Krysikb8a26e52015-08-15 21:52:46 +020038 COMMAND GRC_BLOCKS_PATH=${BLOCK_PATH} ${GRCC_COMMAND} -d ${CMAKE_CURRENT_BINARY_DIR}
Piotr Krysik242522f2015-08-13 10:51:59 +020039 ARGS "airprobe_rtlsdr.grc"
40 WORKING_DIRECTORY ${APPS_DIR}
41)
ptrkrysik12fe7a02014-11-20 11:10:20 +010042
Piotr Krysik20d2de42015-08-17 14:19:59 +020043
piotr437f5462014-02-04 17:57:25 +010044GR_PYTHON_INSTALL(
Piotr Krysik20d2de42015-08-17 14:19:59 +020045 PROGRAMS
46 ${CMAKE_CURRENT_BINARY_DIR}/airprobe_file.py
47 ${CMAKE_CURRENT_BINARY_DIR}/airprobe_rtlsdr.py
piotr437f5462014-02-04 17:57:25 +010048 DESTINATION bin
49)