blob: 54a7774abee08e66cb16f0e16d7692cd43d01b36 [file] [log] [blame]
Vasil Velichkov1789ae22019-08-13 20:32:05 +00001# Copyright 2011,2012,2014,2016,2018 Free Software Foundation, Inc.
piotr437f5462014-02-04 17:57:25 +01002#
Vasil Velichkov1789ae22019-08-13 20:32:05 +00003# This file was generated by gr_modtool, a tool from the GNU Radio framework
4# This file is a part of gr-gsm
piotr437f5462014-02-04 17:57:25 +01005#
6# GNU Radio is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3, or (at your option)
9# any later version.
10#
11# GNU Radio is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with GNU Radio; see the file COPYING. If not, write to
18# the Free Software Foundation, Inc., 51 Franklin Street,
19# Boston, MA 02110-1301, USA.
20
21include(GrPython)
Piotr Krysikf00936d2018-06-18 14:59:18 +020022include(GrccCompile)
Piotr Krysik5c7a5782016-02-17 12:08:51 +010023add_subdirectory(helpers)
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
Vasil Velichkov1789ae22019-08-13 20:32:05 +000033if(ENABLE_GRC AND ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON)
Vasil Velichkov014ed2b2018-04-24 18:32:39 +030034 list (APPEND grgsm_flowgraphs ${CMAKE_CURRENT_BINARY_DIR}/grgsm_livemon)
Vasil Velichkov1789ae22019-08-13 20:32:05 +000035endif()
Vasil Velichkov014ed2b2018-04-24 18:32:39 +030036
Vasil Velichkov1789ae22019-08-13 20:32:05 +000037if(ENABLE_GRC AND ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON_HEADLESS)
Vasil Velichkov014ed2b2018-04-24 18:32:39 +030038 list (APPEND grgsm_flowgraphs ${CMAKE_CURRENT_BINARY_DIR}/grgsm_livemon_headless)
Vasil Velichkov1789ae22019-08-13 20:32:05 +000039endif()
Vasil Velichkov014ed2b2018-04-24 18:32:39 +030040
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 Velichkov1789ae22019-08-13 20:32:05 +000053add_dependencies(pygen_apps grgsm_swig)