Adding a Readline finder CMake module because Readline is not in the default CMake module list.

This commit is contained in:
Haitham Gad 2013-03-09 14:41:47 -05:00 committed by Paul Beckingham
parent 5a360ef208
commit 14717cb2da

View file

@ -0,0 +1,8 @@
# GNU Readline library finder
if (READLINE_INCLUDE_DIR AND READLINE_LIBRARIES)
set (READLINE_FOUND TRUE)
else (READLINE_INCLUDE_DIR AND READLINE_LIBRARIES)
find_path (READLINE_INCLUDE_DIR readline/readline.h)
find_library (READLINE_LIBRARIES readline)
mark_as_advanced (READLINE_INCLUDE_DIR READLINE_LIBRARIES)
endif (READLINE_INCLUDE_DIR AND READLINE_LIBRARIES)