blob: 8d8d0009911d3d5adf3d6a52455ee4c5e6e58ebc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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 ()
|