1test_inc = include_directories('../include')
2test_dep = [
3    catch2,
4    fmt,
5    gtkmm,
6    jsoncpp,
7    spdlog,
8]
9test_src = files(
10    'main.cpp',
11    'SafeSignal.cpp',
12    'config.cpp',
13    '../src/config.cpp',
14)
15
16if tz_dep.found()
17  test_dep += tz_dep
18  test_src += files('waybar_time.cpp')
19endif
20
21waybar_test = executable(
22    'waybar_test',
23    test_src,
24    dependencies: test_dep,
25    include_directories: test_inc,
26)
27
28test(
29    'waybar',
30    waybar_test,
31    workdir: meson.source_root(),
32)
33