This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,516 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
_* | ||
*.[oa] | ||
*.so | ||
*.obj | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# - Try to find Readline | ||
# Once done this will define | ||
# READLINE_FOUND - System has readline | ||
# READLINE_INCLUDE_DIRS - The readline include directories | ||
# READLINE_LIBRARIES - The libraries needed to use readline | ||
# READLINE_DEFINITIONS - Compiler switches required for using readline | ||
|
||
find_package ( PkgConfig ) | ||
pkg_check_modules ( PC_READLINE QUIET readline ) | ||
set ( READLINE_DEFINITIONS ${PC_READLINE_CFLAGS_OTHER} ) | ||
|
||
find_path ( READLINE_INCLUDE_DIR readline/readline.h | ||
HINTS ${PC_READLINE_INCLUDEDIR} ${PC_READLINE_INCLUDE_DIRS} | ||
PATH_SUFFIXES readline ) | ||
|
||
find_library ( READLINE_LIBRARY NAMES readline | ||
HINTS ${PC_READLINE_LIBDIR} ${PC_READLINE_LIBRARY_DIRS} ) | ||
|
||
set ( READLINE_LIBRARIES ${READLINE_LIBRARY} ) | ||
set ( READLINE_INCLUDE_DIRS ${READLINE_INCLUDE_DIR} ) | ||
|
||
include ( FindPackageHandleStandardArgs ) | ||
# handle the QUIETLY and REQUIRED arguments and set READLINE_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
find_package_handle_standard_args ( readline DEFAULT_MSG READLINE_LIBRARY READLINE_INCLUDE_DIR ) |
Oops, something went wrong.