1libi2c_dev = static_library( 2 'i2c_dev', 3 'i2c.cpp', 4 link_args : '-li2c', 5) 6 7libi2c_inc = include_directories('.') 8libi2c_dep = declare_dependency( 9 link_with: libi2c_dev, 10 include_directories : libi2c_inc, 11 link_args : '-li2c') 12 13if get_option('tests').allowed() 14 subdir('test') 15endif 16