mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 14:01:21 +00:00
13db5b578b
FIND_PACKAGE_HANDLE_STANDARD_ARGS(), so cmake modules can specify their own better failure messages. If the default is ok use "DEFAULT_MSG". Do this also for FindBoost.cmake (#5349) Alex
41 lines
975 B
CMake
41 lines
975 B
CMake
# - Find the curses include file and library
|
|
#
|
|
|
|
FIND_PATH(CURSES_INCLUDE_PATH curses.h )
|
|
|
|
FIND_LIBRARY(CURSES_LIBRARY NAMES curses ncurses )
|
|
|
|
FIND_LIBRARY(CURSES_EXTRA_LIBRARY cur_colr )
|
|
|
|
FIND_LIBRARY(FORM_LIBRARY form )
|
|
|
|
# Need to provide the *_LIBRARIES
|
|
SET(CURSES_LIBRARIES ${CURSES_LIBRARY})
|
|
|
|
IF(CURSES_EXTRA_LIBRARY)
|
|
SET(CURSES_LIBRARIES ${CURSES_LIBRARIES} ${CURSES_EXTRA_LIBRARY})
|
|
ENDIF(CURSES_EXTRA_LIBRARY)
|
|
|
|
IF(FORM_LIBRARY)
|
|
SET(CURSES_LIBRARIES ${CURSES_LIBRARIES} ${FORM_LIBRARY})
|
|
ENDIF(FORM_LIBRARY)
|
|
|
|
# Proper name is *_INCLUDE_DIR
|
|
SET(CURSES_INCLUDE_DIR ${CURSES_INCLUDE_PATH})
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set CURSES_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Curses DEFAULT_MSG CURSES_LIBRARY CURSES_INCLUDE_PATH)
|
|
|
|
|
|
MARK_AS_ADVANCED(
|
|
CURSES_INCLUDE_PATH
|
|
CURSES_LIBRARY
|
|
CURSES_EXTRA_LIBRARY
|
|
FORM_LIBRARY
|
|
CURSES_LIBRARIES
|
|
CURSES_INCLUDE_DIR
|
|
)
|
|
|