Last change
on this file since 20084 was 19977, checked in by tbretz, 4 years ago |
Make proper use of PATH_SUFFIXES
|
File size:
627 bytes
|
Line | |
---|
1 | # Try to find the package via pkg-config
|
---|
2 | PKG_CHECK_MODULES(CFITSIO cfitsio QUIET)
|
---|
3 |
|
---|
4 | # Try to locate the package in the default path
|
---|
5 | # and in the path provided by pkg-config
|
---|
6 | FIND_PATH(CCFITS_INCLUDE_DIR NAMES CCfits PATHS ${CCFITS_INCLUDE_DIRS} PATH_SUFFIXES CCfits)
|
---|
7 | FIND_LIBRARY(CCFITS_LIBRARY NAMES CCfits PATHS ${CCFITS_LIBRARY_DIRS})
|
---|
8 |
|
---|
9 | # Check if CFITSIOLIBARARY and CFITSIOINCLUDE_DIR is set
|
---|
10 | # Print a message otherwise
|
---|
11 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(CCfits DEFAULT_MSG CCFITS_LIBRARY CCFITS_INCLUDE_DIR)
|
---|
12 |
|
---|
13 | # Mark those variables to be displayed as 'advanced' in the GUI
|
---|
14 | MARK_AS_ADVANCED(CCFITS_LIBRARY CCFITS_INCLUDE_DIR)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.