2012-08-21 01:25:55 +08:00
|
|
|
# - 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
|
2017-03-13 03:07:44 +08:00
|
|
|
NAMES qwt_plot.h
|
|
|
|
HINTS
|
|
|
|
${CMAKE_INSTALL_PREFIX}/include/qwt
|
|
|
|
${CMAKE_PREFIX_PATH}/include/qwt
|
|
|
|
PATHS
|
|
|
|
/usr/local/include/qwt-qt4
|
|
|
|
/usr/local/include/qwt
|
|
|
|
/usr/include/qwt6
|
|
|
|
/usr/include/qwt-qt4
|
|
|
|
/usr/include/qwt
|
|
|
|
/usr/include/qwt5
|
|
|
|
/opt/local/include/qwt
|
|
|
|
/sw/include/qwt
|
|
|
|
/usr/local/lib/qwt.framework/Headers
|
2012-08-21 01:25:55 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
find_library (QWT_LIBRARIES
|
2017-03-13 03:07:44 +08:00
|
|
|
NAMES qwt6 qwt6-qt4 qwt qwt-qt4 qwt5 qwtd5
|
|
|
|
HINTS
|
|
|
|
${CMAKE_INSTALL_PREFIX}/lib
|
|
|
|
${CMAKE_INSTALL_PREFIX}/lib64
|
|
|
|
${CMAKE_PREFIX_PATH}/lib
|
|
|
|
PATHS
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/lib
|
|
|
|
/opt/local/lib
|
|
|
|
/sw/lib
|
|
|
|
/usr/local/lib/qwt.framework
|
2012-08-21 01:25:55 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# 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)
|