2011-05-21 12:32:53 -06:00
|
|
|
IF(Curses_FOUND)
|
|
|
|
SET(Curses_FIND_QUIETLY TRUE)
|
|
|
|
ENDIF()
|
2010-03-23 14:35:14 -06:00
|
|
|
|
2011-05-21 12:32:53 -06:00
|
|
|
FIND_PATH(Curses_INCLUDE_PATH
|
|
|
|
NAMES ncurses.h curses.h
|
|
|
|
PATH_SUFFIXES ncurses
|
2011-05-28 02:18:50 -06:00
|
|
|
PATHS /usr/include/ncursesw /usr/include /usr/local/include /usr/pkg/include
|
2011-05-21 12:32:53 -06:00
|
|
|
)
|
2010-03-23 14:35:14 -06:00
|
|
|
|
2011-05-21 12:32:53 -06:00
|
|
|
FIND_LIBRARY(Curses_LIBRARY
|
|
|
|
NAMES ncursesw
|
|
|
|
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
|
|
|
|
)
|
2010-03-23 14:35:14 -06:00
|
|
|
|
2011-05-21 12:32:53 -06:00
|
|
|
IF (Curses_INCLUDE_PATH AND Curses_LIBRARY)
|
|
|
|
SET(Curses_FOUND TRUE)
|
|
|
|
ENDIF()
|
2010-03-23 14:35:14 -06:00
|
|
|
|
|
|
|
MARK_AS_ADVANCED(
|
2011-05-21 12:32:53 -06:00
|
|
|
Curses_INCLUDE_PATH
|
|
|
|
Curses_LIBRARY
|
|
|
|
)
|