/[pcre]/code/trunk/cmake/FindReadline.cmake
ViewVC logotype

Contents of /code/trunk/cmake/FindReadline.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 303 - (show annotations)
Sun Jan 20 19:39:43 2008 UTC (12 years, 10 months ago) by ph10
File size: 847 byte(s)
Apply Christian Ehrlicher's patch to update the CMake files.
1 # from http://websvn.kde.org/trunk/KDE/kdeedu/cmake/modules/FindReadline.cmake
2 # http://websvn.kde.org/trunk/KDE/kdeedu/cmake/modules/COPYING-CMAKE-SCRIPTS
3 # --> BSD licensed
4 #
5 # GNU Readline library finder
6 if(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)
7 set(READLINE_FOUND TRUE)
8 else(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)
9 FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h
10 /usr/include/readline
11 )
12
13 FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
14 FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses )
15 include(FindPackageHandleStandardArgs)
16 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DIR READLINE_LIBRARY )
17
18 MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY)
19 endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)

  ViewVC Help
Powered by ViewVC 1.1.5