# cmake version cmake_minimum_required(VERSION 3.13) # include the sdk.cmake file include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake) # give the project a name (anything you want) project(ili_pio_test) # initialize the sdk pico_sdk_init() ####### # name anything you want add_executable(ili_pio_test) # must match with pio filename and executable name from above pico_generate_pio_header(ili_pio_test ${CMAKE_CURRENT_LIST_DIR}/ili9341.pio) # must match with executable name and source file names target_sources(ili_pio_test PRIVATE main.c ili9341.c logo.c pico.c ) # must match with executable name target_link_libraries(ili_pio_test PRIVATE pico_stdlib hardware_pio hardware_dma hardware_irq ) # must match with executable name pico_add_extra_outputs(ili_pio_test) pico_enable_stdio_usb(ili_pio_test 1) pico_enable_stdio_uart(ili_pio_test 0) #add_compile_options(-Ofast)