aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c68e5b5..7bac446 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,6 +26,7 @@ set (project_CMAKE_NAME "Termo")
find_package (Curses)
find_package (PkgConfig REQUIRED)
pkg_check_modules (glib glib-2.0 gio-2.0)
+pkg_check_modules (ncursesw ncursesw)
pkg_check_modules (unibilium unibilium>=0.1.0)
# Header files with configuration
@@ -48,6 +49,9 @@ if (unibilium_FOUND)
include_directories (${unibilium_INCLUDE_DIRS})
set (lib_libraries ${unibilium_LIBRARIES})
add_definitions (-DHAVE_UNIBILIUM)
+elseif (ncursesw_FOUND)
+ include_directories (${ncursesw_INCLUDE_DIRS})
+ set (lib_libraries ${ncursesw_LIBRARIES})
elseif (CURSES_FOUND)
include_directories (${CURSES_INCLUDE_DIR})
set (lib_libraries ${CURSES_LIBRARY})