blob: fe237049fee05e3b45cdf4750c9a618bb1bb64c2 [file] [log] [blame]
Lei YUab1327c2019-11-04 16:53:39 +08001libi2c_dev = static_library(
2 'i2c_dev',
3 'i2c.cpp',
4 link_args : '-li2c',
5)
Lei YU9af82a52019-11-06 14:51:22 +08006
7libi2c_inc = include_directories('.')
Lei YU92e89eb2019-11-06 18:08:25 +08008libi2c_dep = declare_dependency(
9 link_with: libi2c_dev,
10 include_directories : libi2c_inc,
11 link_args : '-li2c')
Shawn McCarneyb1216b92020-01-21 15:22:32 -060012
Patrick Williams5c6a6932023-11-29 06:44:29 -060013if get_option('tests').allowed()
Shawn McCarneyff481432020-02-13 10:38:44 -060014 subdir('test')
15endif