Lei YU | ab1327c | 2019-11-04 16:53:39 +0800 | [diff] [blame] | 1 | libi2c_dev = static_library( |
| 2 | 'i2c_dev', |
| 3 | 'i2c.cpp', |
| 4 | link_args : '-li2c', |
| 5 | ) |
Lei YU | 9af82a5 | 2019-11-06 14:51:22 +0800 | [diff] [blame] | 6 | |
| 7 | libi2c_inc = include_directories('.') |
Lei YU | 92e89eb | 2019-11-06 18:08:25 +0800 | [diff] [blame] | 8 | libi2c_dep = declare_dependency( |
| 9 | link_with: libi2c_dev, |
| 10 | include_directories : libi2c_inc, |
| 11 | link_args : '-li2c') |
Shawn McCarney | b1216b9 | 2020-01-21 15:22:32 -0600 | [diff] [blame] | 12 | |
Patrick Williams | 5c6a693 | 2023-11-29 06:44:29 -0600 | [diff] [blame] | 13 | if get_option('tests').allowed() |
Shawn McCarney | ff48143 | 2020-02-13 10:38:44 -0600 | [diff] [blame] | 14 | subdir('test') |
| 15 | endif |