2023-08-31 10:05:08 +01:00
|
|
|
if(NOT TARGET pico_graphics)
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../pico_graphics/pico_graphics.cmake)
|
|
|
|
endif()
|
|
|
|
|
2021-01-22 14:33:17 +00:00
|
|
|
add_library(pico_scroll INTERFACE)
|
|
|
|
|
2021-04-21 14:35:26 +01:00
|
|
|
set(PICO_SCROLL_SOURCES
|
2021-01-22 14:33:17 +00:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_scroll.cpp
|
2021-04-21 14:35:26 +01:00
|
|
|
${CMAKE_CURRENT_LIST_DIR}/pico_scroll_font.cpp)
|
|
|
|
|
|
|
|
target_sources(pico_scroll INTERFACE
|
|
|
|
${PICO_SCROLL_SOURCES}
|
2021-01-22 14:33:17 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(pico_scroll INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
|
|
|
|
# Pull in pico libraries that we need
|
2023-03-16 16:59:31 +00:00
|
|
|
target_link_libraries(pico_scroll INTERFACE pico_stdlib pico_graphics hardware_i2c)
|