Last change
on this file since 20027 was 20013, checked in by tbretz, 4 years ago |
This change is required for libnova to work if located in a private path.
|
File size:
587 bytes
|
Line | |
---|
1 | # Try to find the package via pkg-config
|
---|
2 | PKG_CHECK_MODULES(NOVA nova QUIET)
|
---|
3 |
|
---|
4 | # Try to locate the package in the default path
|
---|
5 | # and in the path provided by pkg-config
|
---|
6 | FIND_PATH(NOVA_INCLUDE_DIR NAMES libnova/libnova.h PATHS ${NOVA_INCLUDE_DIRS})
|
---|
7 | FIND_LIBRARY(NOVA_LIBRARY NAMES nova PATHS ${NOVA_LIBRARY_DIRS})
|
---|
8 |
|
---|
9 | # Check if NOVA_LIBARARY and NOVA_INCLUDE_DIR is set
|
---|
10 | # Print a message otherwise
|
---|
11 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(Nova DEFAULT_MSG NOVA_LIBRARY NOVA_INCLUDE_DIR)
|
---|
12 |
|
---|
13 | # Mark those variables to be displayed as 'advanced' in the GUI
|
---|
14 | MARK_AS_ADVANCED(NOVA_LIBRARY NOVA_INCLUDE_DIR)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.