blob: db2a803ef91a5d1972ca1514a9e35e6706ce56be [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
22GR_PYTHON_INSTALL(
Piotr Krysik20d2de42015-08-17 14:19:59 +020023 PROGRAMS
Piotr Krysik332e0b52016-02-13 18:37:32 +010024 grgsm_livemon
25 grgsm_scanner
26 grgsm_decode
27 helpers/grgsm_capture.py
28 helpers/grgsm_channelize.py
Piotr Krysik3e192c42016-02-13 07:31:51 +010029 DESTINATION bin
30)
31
32#create logical links in order to keep legacy names of apps
33macro(CREATE_SYMLINK _source _dest)
34 set(source ${CMAKE_CURRENT_SOURCE_DIR}/${_source})
35 set(dest ${CMAKE_CURRENT_BINARY_DIR}/${_dest})
36 list(APPEND symlinks ${dest})
37 add_custom_command(
38 DEPENDS ${source} OUTPUT ${dest}
39 COMMAND ln -sf ${_source} ${_dest}
40 )
41endmacro(CREATE_SYMLINK)
42
Piotr Krysik332e0b52016-02-13 18:37:32 +010043CREATE_SYMLINK(grgsm_livemon airprobe_rtlsdr.py)
44CREATE_SYMLINK(helpers/grgsm_capture.py airprobe_rtlsdr_capture.py)
45CREATE_SYMLINK(grgsm_decode airprobe_decode.py)
46CREATE_SYMLINK(grgsm_scanner airprobe_rtlsdr_scanner.py)
Piotr Krysik3e192c42016-02-13 07:31:51 +010047
48add_custom_target(multi_rtl_grc_xml_blocks ALL DEPENDS ${symlinks})
49
50install(
51 PROGRAMS
52 ${symlinks}
piotr437f5462014-02-04 17:57:25 +010053 DESTINATION bin
54)