mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 20:36:38 +02:00
e867f2dd35
We now provide a FindNcurses.cmake to find the library used and we define the right cpp variable when we compile the curses gui. Signed-off-by: Julien Louis <ptitlouis@sysif.net>
24 lines
481 B
CMake
24 lines
481 B
CMake
|
|
IF(NCURSES_FOUND)
|
|
SET(NCURSES_FIND_QUIETLY TRUE)
|
|
ENDIF(NCURSES_FOUND)
|
|
|
|
FIND_PATH(NCURSES_INCLUDE_PATH
|
|
NAMES ncurses.h curses.h
|
|
PATHS /usr/include /usr/local/include /usr/pkg/include
|
|
)
|
|
|
|
FIND_LIBRARY(NCURSES_LIBRARY
|
|
NAMES ncursesw ncurses
|
|
PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib
|
|
)
|
|
|
|
IF (NCURSES_INCLUDE_PATH AND NCURSES_LIBRARY)
|
|
SET(NCURSES_FOUND TRUE)
|
|
ENDIF(NCURSES_INCLUDE_PATH AND NCURSES_LIBRARY)
|
|
|
|
MARK_AS_ADVANCED(
|
|
NCURSES_INCLUDE_PATH
|
|
NCURSES_LIBRARY
|
|
)
|