pimoroni-pico/libraries/pico_rgb_keypad/pico_rgb_keypad.cmake

10 wiersze
337 B
CMake
Czysty Zwykły widok Historia

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