blob: 3c247f103c47efbbdecb41fd11e68e8a5656e960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index d24f807..e3ad262 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -88,6 +88,7 @@ endif()
# Dependencies
if (NOT WIN32)
+#[[
# ncursesw
find_library(NCURSESW ncursesw)
if (NOT NCURSESW AND APPLE)
@@ -125,6 +126,14 @@ if (NOT WIN32)
tv_message(STATUS "Found 'tinfow': ${TINFOW}")
target_link_libraries(${PROJECT_NAME} PUBLIC ${TINFOW})
endif()
+]]
+ set(CURSES_NEED_NCURSES 1)
+ set(CURSES_NEED_WIDE 1)
+ find_package(Curses REQUIRED)
+ target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_NCURSES)
+ find_path(NCURSESW_INCLUDE NAMES "ncurses.h" PATHS ${CURSES_INCLUDE_DIRS} PATH_SUFFIXES "ncursesw")
+ target_include_directories(${PROJECT_NAME} PRIVATE ${NCURSESW_INCLUDE})
+ target_link_libraries(${PROJECT_NAME} PUBLIC ${CURSES_LIBRARIES})
# gpm
if (TV_BUILD_USING_GPM)
|