piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 1 | # 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 | |
| 20 | include(GrPython) |
Piotr Krysik | f00936d | 2018-06-18 14:59:18 +0200 | [diff] [blame] | 21 | include(GrccCompile) |
Piotr Krysik | 5c7a578 | 2016-02-17 12:08:51 +0100 | [diff] [blame] | 22 | add_subdirectory(helpers) |
Piotr Krysik | 1e72414 | 2018-06-04 09:11:47 +0200 | [diff] [blame] | 23 | #add_subdirectory(apps_data) |
Piotr Krysik | 1ad0c96 | 2017-08-31 21:58:48 +0200 | [diff] [blame] | 24 | |
Piotr Krysik | f00936d | 2018-06-18 14:59:18 +0200 | [diff] [blame] | 25 | GRCC_COMPILE(grgsm_livemon) |
| 26 | GRCC_COMPILE(grgsm_livemon_headless) |
Vasil Velichkov | 0feb4ab | 2018-02-21 06:12:04 +0200 | [diff] [blame] | 27 | |
Vasil Velichkov | 014ed2b | 2018-04-24 18:32:39 +0300 | [diff] [blame] | 28 | set(grgsm_flowgraphs "") |
| 29 | OPTION(ENABLE_GRCC "Compile the flowgraphs with grcc" ON) |
| 30 | OPTION(ENABLE_GRGSM_LIVEMON "Compile grgsm_livemon" ON) |
| 31 | OPTION(ENABLE_GRGSM_LIVEMON_HEADLESS "Compile grgsm_livemon_headless" ON) |
| 32 | |
| 33 | if(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON) |
| 34 | list (APPEND grgsm_flowgraphs ${CMAKE_CURRENT_BINARY_DIR}/grgsm_livemon) |
| 35 | endif(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON) |
| 36 | |
| 37 | if(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON_HEADLESS) |
| 38 | list (APPEND grgsm_flowgraphs ${CMAKE_CURRENT_BINARY_DIR}/grgsm_livemon_headless) |
| 39 | endif(ENABLE_GRCC AND ENABLE_GRGSM_LIVEMON_HEADLESS) |
| 40 | |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 41 | GR_PYTHON_INSTALL( |
Piotr Krysik | 20d2de4 | 2015-08-17 14:19:59 +0200 | [diff] [blame] | 42 | PROGRAMS |
Vasil Velichkov | 014ed2b | 2018-04-24 18:32:39 +0300 | [diff] [blame] | 43 | ${grgsm_flowgraphs} |
Piotr Krysik | 332e0b5 | 2016-02-13 18:37:32 +0100 | [diff] [blame] | 44 | grgsm_scanner |
| 45 | grgsm_decode |
Piotr Krysik | 902f4eb | 2017-09-19 08:04:33 +0200 | [diff] [blame] | 46 | grgsm_trx |
Piotr Krysik | 3e192c4 | 2016-02-13 07:31:51 +0100 | [diff] [blame] | 47 | DESTINATION bin |
| 48 | ) |
| 49 | |
Vasil Velichkov | 0feb4ab | 2018-02-21 06:12:04 +0200 | [diff] [blame] | 50 | # 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 Krysik | f00936d | 2018-06-18 14:59:18 +0200 | [diff] [blame] | 52 | # GR_UNIQUE_TARGET that we redefine in GrccCompile. |
Vasil Velichkov | 0feb4ab | 2018-02-21 06:12:04 +0200 | [diff] [blame] | 53 | add_dependencies(pygen_apps _grgsm_swig) |
| 54 | |
Piotr Krysik | 3e192c4 | 2016-02-13 07:31:51 +0100 | [diff] [blame] | 55 | install( |
| 56 | PROGRAMS |
piotr | 437f546 | 2014-02-04 17:57:25 +0100 | [diff] [blame] | 57 | DESTINATION bin |
| 58 | ) |