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)
8  set(CURSESANDPANEL_FOUND TRUE)
9else()
10  find_package(Curses QUIET)
11  find_library(PANEL_LIBRARIES NAMES panel DOC "The curses panel library" QUIET)
12  include(FindPackageHandleStandardArgs)
13  find_package_handle_standard_args(CursesAndPanel
14                                    FOUND_VAR
15                                      CURSESANDPANEL_FOUND
16                                    REQUIRED_VARS
17                                      CURSES_INCLUDE_DIRS
18                                      CURSES_LIBRARIES
19                                      PANEL_LIBRARIES)
20  if(CURSES_FOUND AND PANEL_LIBRARIES)
21    mark_as_advanced(CURSES_INCLUDE_DIRS CURSES_LIBRARIES PANEL_LIBRARIES)
22  endif()
23endif()
24
25