1ab1327c3SLei YUlibi2c_dev = static_library(
2ab1327c3SLei YU    'i2c_dev',
3ab1327c3SLei YU    'i2c.cpp',
4ab1327c3SLei YU    link_args : '-li2c',
5ab1327c3SLei YU)
69af82a5cSLei YU
79af82a5cSLei YUlibi2c_inc = include_directories('.')
892e89eb5SLei YUlibi2c_dep = declare_dependency(
992e89eb5SLei YU    link_with: libi2c_dev,
1092e89eb5SLei YU    include_directories : libi2c_inc,
1192e89eb5SLei YU    link_args : '-li2c')
12b1216b96SShawn McCarney
13*5c6a693eSPatrick Williamsif get_option('tests').allowed()
14b1216b96SShawn McCarney    subdir('test')
15ff481438SShawn McCarneyendif
16