Update sample projects to cmake

This commit is contained in:
Wayne Venables
2023-02-25 23:56:46 -08:00
parent 4fc98f818b
commit c3581b1703
315 changed files with 1104 additions and 1547 deletions

View File

@@ -0,0 +1,22 @@
add_executable(vga_balloons
src/main.cpp
img/clouds.cpp
img/hotair.cpp
img/blue.cpp
img/green.cpp
img/red.cpp
img/yellow.cpp
)
add_picovga(vga_balloons)
# for vga_config.h include
target_include_directories(vga_balloons PRIVATE
${CMAKE_CURRENT_LIST_DIR}/src
)
# create map/bin/hex file etc.
pico_add_extra_outputs(vga_balloons)
# Allow stdio to USB
# pico_enable_stdio_usb(vga_balloons 1)

View File

@@ -5,7 +5,7 @@
//
// ****************************************************************************
#include "include.h"
#include "main.h"
// Draw box
ALIGNED u8 Box[WIDTHBYTE*HEIGHT];