13 lines
487 B
CMake
13 lines
487 B
CMake
# @author Christian Burger <christian@krikkel.de>
|
|
|
|
set(CURSES_NEED_NCURSES TRUE)
|
|
set(CURSES_NEED_WIDE TRUE)
|
|
find_package(Curses 6.2 REQUIRED)
|
|
include_directories(SYSTEM ${CURSES_INCLUDE_DIRS})
|
|
|
|
# find C++ interface for ncurses with unicode support
|
|
find_library(CURSES_CPP_WIDE_LIBRARY NAMES ncurses++w REQUIRED)
|
|
if(NOT CURSES_CPP_WIDE_LIBRARY)
|
|
message(FATAL_ERROR "C++ interface for ncurses (wide/unicode) not found.")
|
|
endif()
|
|
list(APPEND CURSES_LIBRARIES ${CURSES_CPP_WIDE_LIBRARY}) |