ceda2vga/CMakeLists.txt

40 lines
938 B
CMake

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()
# include(example_auto_set_url.cmake)
# Add blink example
# add_subdirectory(blink)
# Add hello world example
# add_subdirectory(hello_world)
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
)
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)
# add url via pico_set_program_url
# example_auto_set_url(ceda2vga)