source: trunk/FACT++/cmake/FindReadline.cmake@ 20006

Last change on this file since 20006 was 19977, checked in by tbretz, 4 years ago
Make proper use of PATH_SUFFIXES
File size: 639 bytes
Line 
1# Try to find the package via pkg-config
2PKG_CHECK_MODULES(READLINE readline QUIET)
3
4# Try to locate the package in the default path
5# and in the path provided by pkg-config
6FIND_PATH(READLINE_INCLUDE_DIR NAMES readline.h PATHS ${READLINE_INCLUDEDIR} PATH_SUFFIXES readline)
7FIND_LIBRARY(READLINE_LIBRARY NAMES readline PATHS ${READLINE_LIBDIR})
8
9# Check if AO_LIBARARY and AO_INCLUDE_DIR is set
10# Print a message otherwise
11FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG READLINE_LIBRARY READLINE_INCLUDE_DIR)
12
13# Mark those variables to be displayed as 'advanced' in the GUI
14MARK_AS_ADVANCED(READLINE_LIBRARY READLINE_INCLUDE_DIR)
Note: See TracBrowser for help on using the repository browser.