summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorJosh Blum2012-01-17 15:51:05 -0800
committerJohnathan Corgan2012-01-17 16:23:18 -0800
commit9f41efcb0a98f035186d84deffa21f1c38141845 (patch)
tree1f1bd79f0589e41dc29c21f73ea1f62511f99835 /cmake
parent7850d5f25168db322d76da9bc6cf3730c5d88d3e (diff)
downloadgnuradio-9f41efcb0a98f035186d84deffa21f1c38141845.tar.gz
gnuradio-9f41efcb0a98f035186d84deffa21f1c38141845.tar.bz2
gnuradio-9f41efcb0a98f035186d84deffa21f1c38141845.zip
qtgui: better findqwt.cmake with standard paths
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/FindQwt.cmake17
1 files changed, 14 insertions, 3 deletions
diff --git a/cmake/Modules/FindQwt.cmake b/cmake/Modules/FindQwt.cmake
index bc8683f7d..857020796 100644
--- a/cmake/Modules/FindQwt.cmake
+++ b/cmake/Modules/FindQwt.cmake
@@ -3,11 +3,22 @@
# QWT_LIBRARIES libraries to link against
# QWT_FOUND If false, do not try to use Qwt
-find_path ( QWT_INCLUDE_DIRS qwt_plot.h /usr/include/qwt-qt4 /usr/include/qwt /opt/local/include/qwt )
-
-find_library ( QWT_LIBRARIES NAMES qwt-qt4 qwt)
+find_path (QWT_INCLUDE_DIRS
+ NAMES qwt_plot.h
+ PATHS
+ /usr/local/include/qwt-qt4
+ /usr/local/include/qwt
+ /usr/include/qwt-qt4
+ /usr/include/qwt
+)
+
+find_library (QWT_LIBRARIES
+ NAMES qwt-qt4 qwt
+ PATHS /usr/local/lib /usr/lib
+)
# handle the QUIETLY and REQUIRED arguments and set QWT_FOUND to TRUE if
# all listed variables are TRUE
include ( FindPackageHandleStandardArgs )
find_package_handle_standard_args( Qwt DEFAULT_MSG QWT_LIBRARIES QWT_INCLUDE_DIRS )
+MARK_AS_ADVANCED(QWT_LIBRARIES QWT_INCLUDE_DIRS)