mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-30 07:51:55 +00:00
aac2354f5c
cd fluidsynth && git mv * ../
22 lines
846 B
CMake
22 lines
846 B
CMake
# Try to find the READLINE library
|
|
# HAVE_READLINE - system has READLINE
|
|
# READLINE_INCLUDE_DIR - READLINE include directory
|
|
# READLINE_LIBRARIES - Libraries needed to use READLINE
|
|
|
|
if ( READLINE_INCLUDE_DIR AND READLINE_LIBRARIES )
|
|
set ( READLINE_FIND_QUIETLY TRUE )
|
|
endif ( READLINE_INCLUDE_DIR AND READLINE_LIBRARIES )
|
|
|
|
find_path ( READLINE_INCLUDE_DIR NAMES history.h readline/history.h )
|
|
find_library ( READLINE_LIBRARIES NAMES readline )
|
|
|
|
if ( READLINE_INCLUDE_DIR )
|
|
set ( HAVE_READLINE TRUE CACHE TYPE BOOL )
|
|
endif ( READLINE_INCLUDE_DIR )
|
|
|
|
include ( FindPackageHandleStandardArgs )
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS( READLINE DEFAULT_MSG
|
|
READLINE_INCLUDE_DIR
|
|
READLINE_LIBRARIES )
|
|
|
|
mark_as_advanced( READLINE_INCLUDE_DIR READLINE_LIBRARIES HAVE_READLINE )
|