cmake_minimum_required(VERSION 3.13) include(${PICO_SDK_PATH}/external/pico_sdk_import.cmake) project(usb2sun5) pico_sdk_init() add_executable(usb2sun5 main.c) set_source_files_properties(main.c PROPERTIES COMPILE_FLAGS -Wall -Wextra -pedantic C_STANDARD 90 ) pico_generate_pio_header(usb2sun5 ${CMAKE_CURRENT_LIST_DIR}/uart_tx.pio) target_include_directories(usb2sun5 PUBLIC ${CMAKE_CURRENT_LIST_DIR}) target_link_libraries(usb2sun5 PUBLIC pico_stdlib pico_multicore pico_util hardware_uart hardware_pio hardware_pwm tinyusb_host tinyusb_board) # change default stdout pico_enable_stdio_usb(usb2sun5 0) pico_enable_stdio_uart(usb2sun5 1) # create map/bin/hex/uf2 file in addition to ELF. pico_add_extra_outputs(usb2sun5)