Waybar/test/meson.build

35 lines
565 B
Meson
Raw Normal View History

2021-08-14 01:33:24 +00:00
test_inc = include_directories('../include')
test_dep = [
catch2,
fmt,
gtkmm,
2021-08-14 01:33:24 +00:00
jsoncpp,
spdlog,
]
test_src = files(
2022-01-08 02:59:08 +00:00
'main.cpp',
'SafeSignal.cpp',
2021-08-14 01:33:24 +00:00
'config.cpp',
2024-01-22 02:23:46 +00:00
'css_reload_helper.cpp',
2021-08-14 01:33:24 +00:00
'../src/config.cpp',
2024-01-22 02:23:46 +00:00
'../src/util/css_reload_helper.cpp',
)
if tz_dep.found()
test_dep += tz_dep
test_src += files('date.cpp')
endif
waybar_test = executable(
'waybar_test',
test_src,
2021-08-14 01:33:24 +00:00
dependencies: test_dep,
include_directories: test_inc,
)
test(
2022-01-08 02:59:08 +00:00
'waybar',
waybar_test,
workdir: meson.source_root(),
)