pimoroni-pico/libraries/pico_scroll/pico_scroll.cmake

14 lines
404 B
CMake

add_library(pico_scroll INTERFACE)
set(PICO_SCROLL_SOURCES
${CMAKE_CURRENT_LIST_DIR}/pico_scroll.cpp
${CMAKE_CURRENT_LIST_DIR}/pico_scroll_font.cpp)
target_sources(pico_scroll INTERFACE
${PICO_SCROLL_SOURCES}
)
target_include_directories(pico_scroll INTERFACE ${CMAKE_CURRENT_LIST_DIR})
# Pull in pico libraries that we need
target_link_libraries(pico_scroll INTERFACE pico_stdlib hardware_i2c)