summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/python/modtool/CMakeLists.txt')
-rw-r--r--gr-utils/python/modtool/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/CMakeLists.txt b/gr-utils/python/modtool/CMakeLists.txt
index 2cb7c21487..70fdabedac 100644
--- a/gr-utils/python/modtool/CMakeLists.txt
+++ b/gr-utils/python/modtool/CMakeLists.txt
@@ -19,6 +19,18 @@
include(GrPython)
+GR_PYTHON_CHECK_MODULE_RAW(
+ "click"
+ "import click; import click_plugins"
+ CLICK_FOUND
+ )
+
+if(NOT CMAKE_CROSSCOMPILING)
+ if(NOT CLICK_FOUND)
+ message(FATAL_ERROR "Python module click is required for gr-modtool")
+ endif()
+endif()
+
GR_PYTHON_INSTALL(FILES
__init__.py
DESTINATION ${GR_PYTHON_DIR}/gnuradio/modtool