23 lines
697 B
CMake
23 lines
697 B
CMake
if(NOT TARGET hub75)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/hub75/hub75.cmake)
|
|
endif()
|
|
|
|
if(NOT TARGET button)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/button/button.cmake)
|
|
endif()
|
|
|
|
if(NOT TARGET rgbled)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/rgbled/rgbled.cmake)
|
|
endif()
|
|
|
|
if(NOT TARGET pico_graphics)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/../pico_graphics/pico_graphics.cmake)
|
|
endif()
|
|
|
|
set(LIB_NAME interstate75)
|
|
add_library(${LIB_NAME} INTERFACE)
|
|
|
|
target_include_directories(${LIB_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
# Pull in pico libraries that we need
|
|
target_link_libraries(${LIB_NAME} INTERFACE pico_stdlib hub75 button rgbled hardware_pwm pico_graphics) |