blob: 85e78d708ba11bd401a6d2480b70203642757e77 [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)
Piotr Krysikf00936d2018-06-18 14:59:18 +020021include(GrccCompile)
Piotr Krysik5c7a5782016-02-17 12:08:51 +010022add_subdirectory(helpers)
Piotr Krysik1e724142018-06-04 09:11:47 +020023#add_subdirectory(apps_data)
Piotr Krysik1ad0c962017-08-31 21:58:48 +020024
Piotr Krysikf00936d2018-06-18 14:59:18 +020025GRCC_COMPILE(grgsm_livemon)
26GRCC_COMPILE(grgsm_livemon_headless)
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020027
Vasil Velichkov014ed2b2018-04-24 18:32:39 +030028set(grgsm_flowgraphs "")
29OPTION(ENABLE_GRCC "Compile the flowgraphs with grcc" ON)
30OPTION(ENABLE_GRGSM_LIVEMON "Compile grgsm_livemon" ON)
31OPTION(ENABLE_GRGSM_LIVEMON_HEADLESS "Compile grgsm_livemon_headless" ON)
32
33if(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON)
34 list (APPEND grgsm_flowgraphs ${CMAKE_CURRENT_BINARY_DIR}/grgsm_livemon)
35endif(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON)
36
37if(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON_HEADLESS)
38 list (APPEND grgsm_flowgraphs ${CMAKE_CURRENT_BINARY_DIR}/grgsm_livemon_headless)
39endif(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON_HEADLESS)
40
piotr437f5462014-02-04 17:57:25 +010041GR_PYTHON_INSTALL(
Piotr Krysik20d2de42015-08-17 14:19:59 +020042 PROGRAMS
Vasil Velichkov014ed2b2018-04-24 18:32:39 +030043 ${grgsm_flowgraphs}
Piotr Krysik332e0b52016-02-13 18:37:32 +010044 grgsm_scanner
45 grgsm_decode
Piotr Krysik902f4eb2017-09-19 08:04:33 +020046 grgsm_trx
Piotr Krysik3e192c42016-02-13 07:31:51 +010047 DESTINATION bin
48)
49
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020050# The add_dependencies(...) is very important for the parallel build `make -j $(nproc)`
51# The `pygen_apps` target is generated in GR_PYTHON_INSTALL function which calls
Piotr Krysikf00936d2018-06-18 14:59:18 +020052# GR_UNIQUE_TARGET that we redefine in GrccCompile.
Vasil Velichkov0feb4ab2018-02-21 06:12:04 +020053add_dependencies(pygen_apps _grgsm_swig)
54
Piotr Krysik3e192c42016-02-13 07:31:51 +010055install(
56 PROGRAMS
piotr437f5462014-02-04 17:57:25 +010057 DESTINATION bin
58)