cmake_minimum_required(VERSION 3.12) # Pull in SDK include(pico_sdk_import.cmake) project(ceda2vga C CXX ASM) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) # Initialize SDK pico_sdk_init() add_compile_options(-Wall -Wno-format # int != int32_t as far as the compiler is concerned because gcc has int32_t as long int -Wno-unused-function # we have some for the docs that aren't called -Wno-maybe-uninitialized ) add_executable(ceda2vga src/main.c src/draw_demo.c src/framebuffer.c src/vga.c ) pico_generate_pio_header(ceda2vga ${CMAKE_CURRENT_LIST_DIR}/src/vga.pio ) # configure stdio to make I/O on virtual usb serial port pico_enable_stdio_usb(ceda2vga 1) pico_enable_stdio_uart(ceda2vga 0) # create map/bin/hex file etc. pico_add_extra_outputs(ceda2vga) # pull in common dependencies target_link_libraries(ceda2vga pico_stdlib hardware_pio hardware_dma hardware_irq ) # add url via pico_set_program_url # example_auto_set_url(ceda2vga)