pimoroni-pico/libraries/pico_scroll/pico_scroll.cmake

18 lines
530 B
CMake
Raw Normal View History

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)
set(PICO_SCROLL_SOURCES
2021-01-22 14:33:17 +00:00
${CMAKE_CURRENT_LIST_DIR}/pico_scroll.cpp
${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
target_link_libraries(pico_scroll INTERFACE pico_stdlib pico_graphics hardware_i2c)