You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
453 B
17 lines
453 B
find_package(PkgConfig REQUIRED)
|
|
pkg_check_modules(NCURSES QUIET ncurses)
|
|
|
|
if (NCURSES_FOUND)
|
|
foreach (variable IN ITEMS PREFIX INCLUDEDIR LIBDIR)
|
|
get_property("${variable}"
|
|
CACHE "NCURSES_${variable}"
|
|
PROPERTY TYPE
|
|
SET)
|
|
if (NOT ${variable})
|
|
message(FATAL_ERROR "Failed to set cache entry for NCURSES_${variable}")
|
|
endif ()
|
|
endforeach ()
|
|
else ()
|
|
message(STATUS "skipping test; ncurses not found")
|
|
endif ()
|