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.
|
|
|
project('libwmf test', 'c')
|
|
|
|
|
|
|
|
wm = find_program('libwmf-config', required : false)
|
|
|
|
if not wm.found()
|
|
|
|
error('MESON_SKIP_TEST: libwmf-config not installed')
|
|
|
|
endif
|
|
|
|
|
|
|
|
libwmf_dep = dependency('libwmf', version : '>= 0.2.8')
|
|
|
|
libwmf_ver = libwmf_dep.version()
|
|
|
|
assert(libwmf_ver.split('.').length() > 1, 'libwmf version is "@0@"'.format(libwmf_ver))
|
|
|
|
message('libwmf version is "@0@"'.format(libwmf_ver))
|
|
|
|
e = executable('libwmf_prog', 'libwmf_prog.c', dependencies : libwmf_dep)
|
|
|
|
|
|
|
|
test('libwmftest', e)
|
|
|
|
|
|
|
|
# Test using the method keyword:
|
|
|
|
|
|
|
|
dependency('libwmf', method : 'config-tool')
|
|
|
|
dependency('libwmf', method : 'libwmf-config')
|