xref: /openbmc/dbus-sensors/tests/meson.build (revision feb19ef0)
1*feb19ef0SBrad Bishopgtest = dependency('gtest', main: true, disabler: true, required: build_tests)
2*feb19ef0SBrad Bishophave_boost_dbus = meson.get_compiler('cpp').has_header('dbus/connection.hpp')
3*feb19ef0SBrad Bishop
4*feb19ef0SBrad Bishopif have_boost_dbus
5*feb19ef0SBrad Bishoptest(
6*feb19ef0SBrad Bishop    'test_hwmon_temp_sensor',
7*feb19ef0SBrad Bishop    executable(
8*feb19ef0SBrad Bishop        'test_hwmon_temp_sensor',
9*feb19ef0SBrad Bishop        'test_HwmonTempSensor.cpp',
10*feb19ef0SBrad Bishop        dependencies: [
11*feb19ef0SBrad Bishop            gtest,
12*feb19ef0SBrad Bishop            boost_dbus,
13*feb19ef0SBrad Bishop        ],
14*feb19ef0SBrad Bishop        implicit_include_directories: false,
15*feb19ef0SBrad Bishop        include_directories: '../include',
16*feb19ef0SBrad Bishop    )
17*feb19ef0SBrad Bishop)
18*feb19ef0SBrad Bishop
19*feb19ef0SBrad Bishoptest(
20*feb19ef0SBrad Bishop    'test_tach_sensor',
21*feb19ef0SBrad Bishop    executable(
22*feb19ef0SBrad Bishop        'test_tach_sensor',
23*feb19ef0SBrad Bishop        'test_TachSensor.cpp',
24*feb19ef0SBrad Bishop        dependencies: [
25*feb19ef0SBrad Bishop            gtest,
26*feb19ef0SBrad Bishop            boost_dbus,
27*feb19ef0SBrad Bishop        ],
28*feb19ef0SBrad Bishop        implicit_include_directories: false,
29*feb19ef0SBrad Bishop        include_directories: '../include',
30*feb19ef0SBrad Bishop    )
31*feb19ef0SBrad Bishop)
32*feb19ef0SBrad Bishopendif
33