pimoroni-pico/drivers/bh1745/bh1745.cmake

10 lines
294 B
CMake
Raw Normal View History

2021-01-27 11:14:25 +00:00
add_library(bh1745 INTERFACE)
target_sources(bh1745 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/bh1745.cpp)
target_include_directories(bh1745 INTERFACE ${CMAKE_CURRENT_LIST_DIR})
# Pull in pico libraries that we need
2021-07-12 13:21:14 +01:00
target_link_libraries(bh1745 INTERFACE pico_stdlib hardware_i2c pimoroni_i2c)