pico-ice-video/CMakeLists.txt
2024-09-24 20:52:23 -04:00

16 lines
508 B
CMake

cmake_minimum_required(VERSION 3.13...3.27)
include(pico_sdk_import.cmake)
project(usb-video C CXX ASM)
pico_sdk_init()
add_subdirectory(pico-ice-sdk)
add_executable(usb-video main.cpp usb_descriptors.c)
target_link_libraries(usb-video pico_ice_sdk pico_ice_usb pico_stdio_usb pico_bootsel_via_double_reset)
target_include_directories(usb-video PUBLIC ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_BINARY_DIR})
pico_add_extra_outputs(usb-video)
pico_enable_stdio_usb(usb-video 0)
pico_enable_stdio_uart(usb-video 0)