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
|
---|
2 | PKG_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
|
---|
6 | FIND_PATH(QWT_INCLUDE_DIR NAMES qwt-qt4/qwt.h PATHS ${QWT_INCLUDE_DIRS})
|
---|
7 | FIND_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)
|
---|
12 | FIND_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
|
---|
15 | MARK_AS_ADVANCED(QWT_LIBRARY QWT_INCLUDE_DIR)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.