llvm-project
23 строки · 856.0 Байт
1#.rst:
2# FindCursesAndPanel
3# -----------
4#
5# Find the curses and panel library as a whole.
6
7if(CURSES_INCLUDE_DIRS AND CURSES_LIBRARIES AND PANEL_LIBRARIES)
8set(CURSESANDPANEL_FOUND TRUE)
9else()
10find_package(Curses QUIET)
11find_library(PANEL_LIBRARIES NAMES panel DOC "The curses panel library" QUIET)
12include(FindPackageHandleStandardArgs)
13find_package_handle_standard_args(CursesAndPanel
14FOUND_VAR
15CURSESANDPANEL_FOUND
16REQUIRED_VARS
17CURSES_INCLUDE_DIRS
18CURSES_LIBRARIES
19PANEL_LIBRARIES)
20if(CURSES_FOUND AND PANEL_LIBRARIES)
21mark_as_advanced(CURSES_INCLUDE_DIRS CURSES_LIBRARIES PANEL_LIBRARIES)
22endif()
23endif()
24
25