mirror of https://github.com/microsoft/vcpkg.git
28 lines
931 B
Diff
28 lines
931 B
Diff
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)
|