1test_sources = [
2  '../manager.cpp',
3  '../serialize.cpp',
4  '../utils.cpp'
5]
6
7tests = [
8  'utest.cpp',
9  'utest-serialize.cpp',
10]
11
12if get_option('use-json').enabled()
13  tests += ['utest-led-json.cpp']
14endif
15
16foreach t : tests
17  test(t, executable(t.underscorify(), t,
18                     test_sources,
19                     include_directories: ['..'],
20                     dependencies: [
21                         gtest,
22                         gmock,
23                         deps
24                         ]),
25       workdir: meson.current_source_dir())
26endforeach