forked from gnuradio/gnuradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
59 lines (45 loc) · 1.92 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 2011,2012,2020 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
########################################################################
# Setup dependencies
########################################################################
include(GrPython)
gr_python_check_module(
"Mako >= ${GR_MAKO_MIN_VERSION}" mako
"LooseVersion(mako.__version__) >= LooseVersion('${GR_MAKO_MIN_VERSION}')" MAKO_FOUND)
gr_python_check_module_raw("click" "import click" CLICK_FOUND)
########################################################################
# Register component
########################################################################
include(GrComponent)
if(NOT CMAKE_CROSSCOMPILING)
set(utils_python_deps MAKO_FOUND)
set(utils_modtool_deps CLICK_FOUND)
endif(NOT CMAKE_CROSSCOMPILING)
gr_register_component("gr-utils" ENABLE_GR_UTILS ENABLE_GNURADIO_RUNTIME ENABLE_PYTHON
${utils_python_deps})
gr_register_component("gr_modtool" ENABLE_GR_MODTOOL ENABLE_GNURADIO_RUNTIME
ENABLE_PYTHON ${utils_modtool_deps})
gr_register_component("gr_blocktool" ENABLE_GR_BLOCKTOOL ENABLE_GNURADIO_RUNTIME
ENABLE_PYTHON)
########################################################################
# Begin conditional configuration
########################################################################
if(ENABLE_GR_UTILS)
########################################################################
# Add subdirectories
########################################################################
add_subdirectory(plot_tools)
add_subdirectory(read_file_metadata)
if(ENABLE_GR_BLOCKTOOL)
add_subdirectory(blocktool)
endif(ENABLE_GR_BLOCKTOOL)
if(ENABLE_GR_MODTOOL)
add_subdirectory(bindtool)
add_subdirectory(modtool)
endif(ENABLE_GR_MODTOOL)
endif(ENABLE_GR_UTILS)