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

Last change on this file since 19246 was 19067, checked in by tbretz, 6 years ago
Missing required file.
File size: 573 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
11FIND_PACKAGE_HANDLE_STANDARD_ARGS(QWT DEFAULT_MSG QWT_LIBRARY QWT_INCLUDE_DIR)
12
13# Mark those variables to be displayed as 'advanced' in the GUI
14MARK_AS_ADVANCED(QWT_LIBRARY QWT_INCLUDE_DIR)
Note: See TracBrowser for help on using the repository browser.