From 6d6917f06b8d1ae6e8868dccf565ea63c4018172 Mon Sep 17 00:00:00 2001 From: Nick Foster Date: Mon, 20 Aug 2012 10:25:55 -0700 Subject: [PATCH] Apparently forgot to git add this very important file. --- cmake/Modules/FindQwt.cmake | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 cmake/Modules/FindQwt.cmake diff --git a/cmake/Modules/FindQwt.cmake b/cmake/Modules/FindQwt.cmake new file mode 100644 index 0000000..f2cf344 --- /dev/null +++ b/cmake/Modules/FindQwt.cmake @@ -0,0 +1,30 @@ +# - try to find Qwt libraries and include files +# QWT_INCLUDE_DIR where to find qwt_plot.h, etc. +# QWT_LIBRARIES libraries to link against +# QWT_FOUND If false, do not try to use 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 + /opt/local/include/qwt + /sw/include/qwt +) + +find_library (QWT_LIBRARIES + NAMES qwt-qt4 qwt + PATHS + /usr/local/lib + /usr/lib + /opt/local/lib + /sw/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)