kopia lustrzana https://github.com/pimoroni/pimoroni-pico
10 wiersze
279 B
CMake
10 wiersze
279 B
CMake
|
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)
|