dfhack/CMake/Modules/FindCurses.cmake

24 lines
456 B
CMake

2011-05-21 12:32:53 -06:00
IF(Curses_FOUND)
SET(Curses_FIND_QUIETLY TRUE)
ENDIF()
2011-05-21 12:32:53 -06:00
FIND_PATH(Curses_INCLUDE_PATH
NAMES ncurses.h curses.h
PATH_SUFFIXES ncurses
PATHS /usr/include/ncursesw /usr/include /usr/local/include /usr/pkg/include
2011-05-21 12:32:53 -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
)
2011-05-21 12:32:53 -06:00
IF (Curses_INCLUDE_PATH AND Curses_LIBRARY)
SET(Curses_FOUND TRUE)
ENDIF()
MARK_AS_ADVANCED(
2011-05-21 12:32:53 -06:00
Curses_INCLUDE_PATH
Curses_LIBRARY
)