summaryrefslogtreecommitdiff
path: root/gr-qtgui
diff options
context:
space:
mode:
authorJosh Blum2011-10-22 13:29:44 -0700
committerJosh Blum2011-10-23 11:06:37 -0700
commit9b58dc91c0bf5a87128a24d8e22a8e19aa974c9f (patch)
treef0f17fa2a9473f1898f47351959de41457b604b0 /gr-qtgui
parent27fb36ed7b07b5055b47ae5509235acf816094e3 (diff)
downloadgnuradio-9b58dc91c0bf5a87128a24d8e22a8e19aa974c9f.tar.gz
gnuradio-9b58dc91c0bf5a87128a24d8e22a8e19aa974c9f.tar.bz2
gnuradio-9b58dc91c0bf5a87128a24d8e22a8e19aa974c9f.zip
cmake: make python checks optional for cross builds
Diffstat (limited to 'gr-qtgui')
-rw-r--r--gr-qtgui/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/gr-qtgui/CMakeLists.txt b/gr-qtgui/CMakeLists.txt
index 9caea38c7..6a9c39f9d 100644
--- a/gr-qtgui/CMakeLists.txt
+++ b/gr-qtgui/CMakeLists.txt
@@ -36,13 +36,20 @@ GR_PYTHON_CHECK_MODULE("PyQt4" PyQt4 True PYQT4_FOUND)
# Register component
########################################################################
include(GrComponent)
+if(NOT CMAKE_CROSSCOMPILING)
+ set(qt_gui_python_deps
+ PYQT4_FOUND
+ #we could check for pyqwt, but its not strictly required
+ )
+endif(NOT CMAKE_CROSSCOMPILING)
+
GR_REGISTER_COMPONENT("gr-qtgui" ENABLE_GR_QTGUI
Boost_FOUND
QT4_FOUND
QWT_FOUND
ENABLE_GR_CORE
PYTHONLIBS_FOUND
- PYQT4_FOUND
+ ${qt_gui_python_deps}
)
GR_SET_GLOBAL(GR_QTGUI_INCLUDE_DIRS