source: trunk/FACT++/cmake/FindQwt.cmake@ 19921

Last change on this file since 19921 was 19397, checked in by tbretz, 6 years ago
Make cmake fail if Qwt not found.
File size: 675 bytes
Line 
1# Try to find the package via pkg-config
2PKG_CHECK_MODULES(QWT qwt QUIET)
3
4# Try to locate the package in the default path
5# and in the path provided by pkg-config
6FIND_PATH(QWT_INCLUDE_DIR NAMES qwt-qt4/qwt.h PATHS ${QWT_INCLUDE_DIRS})
7FIND_LIBRARY(QWT_LIBRARY NAMES qwt-qt4 PATHS ${QWT_LIBRARY_DIRS})
8
9# Check if QWT_LIBARARY and QWT_INCLUDE_DIR is set
10# Print a message otherwise
11#FIND_PACKAGE_HANDLE_STANDARD_ARGS(QWT DEFAULT_MSG QWT_LIBRARY QWT_INCLUDE_DIR)
12FIND_PACKAGE_HANDLE_STANDARD_ARGS(Qwt FOUND_VAR QWT_FOUND REQUIRED_VARS QWT_LIBRARY QWT_INCLUDE_DIR)
13
14# Mark those variables to be displayed as 'advanced' in the GUI
15MARK_AS_ADVANCED(QWT_LIBRARY QWT_INCLUDE_DIR)
Note: See TracBrowser for help on using the repository browser.