mirror of
https://github.com/whowechina/mai_pico.git
synced 2024-12-01 06:27:16 +01:00
18 lines
313 B
CMake
18 lines
313 B
CMake
|
add_library(pico-mpr121 INTERFACE)
|
||
|
|
||
|
target_include_directories(pico-mpr121
|
||
|
INTERFACE
|
||
|
${CMAKE_CURRENT_LIST_DIR}/include
|
||
|
)
|
||
|
|
||
|
target_link_libraries(pico-mpr121
|
||
|
INTERFACE
|
||
|
hardware_i2c
|
||
|
)
|
||
|
|
||
|
target_sources(pico-mpr121
|
||
|
INTERFACE
|
||
|
${CMAKE_CURRENT_LIST_DIR}/mpr121.c
|
||
|
${CMAKE_CURRENT_LIST_DIR}/include/mpr121.h
|
||
|
)
|