23 lines
423 B
Meson
23 lines
423 B
Meson
|
|
|
|
test_unit = 'test-hostname'
|
|
|
|
sources = files(
|
|
test_unit + '.c'
|
|
)
|
|
|
|
cflags = [
|
|
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
|
|
'-DTEST_TOPSRCDIR="@0@"'.format(meson.source_root())
|
|
]
|
|
|
|
exe = executable(
|
|
test_unit,
|
|
sources,
|
|
include_directories : [ top_inc, common_inc ],
|
|
dependencies : common_deps + [libwidgets_dep],
|
|
c_args : cflags,
|
|
)
|
|
|
|
test(test_unit, exe)
|
|
|