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

Contents of /code/trunk/cmake/FindEditline.cmake

Parent Directory Parent Directory | Revision Log Revision Log


Revision 939 - (show annotations)
Sun Feb 26 17:21:43 2012 UTC (7 years, 5 months ago) by ph10
File size: 657 byte(s)
CMake support for linking pcretest with libedit.
1 # Modified from FindReadline.cmake (PH Feb 2012)
2
3 if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
4 set(EDITLINE_FOUND TRUE)
5 else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
6 FIND_PATH(EDITLINE_INCLUDE_DIR readline.h
7 /usr/include/editline
8 /usr/include/edit/readline
9 /usr/include/readline
10 )
11
12 FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit)
13 include(FindPackageHandleStandardArgs)
14 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY )
15
16 MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
17 endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)

  ViewVC Help
Powered by ViewVC 1.1.5