pimoroni-pico/drivers/msa301/msa301.cmake

10 wiersze
279 B
CMake
Czysty Zwykły widok Historia

2021-01-22 14:33:17 +00:00
add_library(msa301 INTERFACE)
target_sources(msa301 INTERFACE
${CMAKE_CURRENT_LIST_DIR}/msa301.cpp
)
target_include_directories(msa301 INTERFACE ${CMAKE_CURRENT_LIST_DIR})
# Pull in pico libraries that we need
target_link_libraries(msa301 INTERFACE pico_stdlib hardware_i2c)