summaryrefslogtreecommitdiffstats
path: root/test cases/frameworks/31 curses/meson.build
blob: 796a0d8b6ad4981fea40e5bb09da194707c66ca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
project('curses', 'c')

curses = dependency('curses', required: false, method : get_option('method'), version : '>= 0')
if not curses.found()
  error('MESON_SKIP_TEST: Curses library not found')
endif

exec = executable('basic', 'main.c', dependencies: curses)
# didn't run the test because in general graphics fail on CI

# this should fail
not_found = dependency('curses', required: false, method : get_option('method'), version : '> 1000000')
assert(not_found.found() == false)