pimoroni-pico/libraries/pico_wireless/pico_wireless.cmake

12 lines
407 B
CMake
Raw Normal View History

include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/esp32wireless/esp32wireless.cmake)
add_library(pico_wireless INTERFACE)
target_sources(pico_wireless INTERFACE
${CMAKE_CURRENT_LIST_DIR}/pico_wireless.cpp
)
target_include_directories(pico_wireless INTERFACE ${CMAKE_CURRENT_LIST_DIR})
# Pull in pico libraries that we need
target_link_libraries(pico_wireless INTERFACE pico_stdlib hardware_spi esp32spi)