Update sample projects to cmake
This commit is contained in:
22
examples/vga_spots/CMakeLists.txt
Normal file
22
examples/vga_spots/CMakeLists.txt
Normal 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)
|
||||
@@ -5,7 +5,7 @@
|
||||
//
|
||||
// ****************************************************************************
|
||||
|
||||
#include "include.h"
|
||||
#include "main.h"
|
||||
|
||||
// Draw box
|
||||
ALIGNED u8 Box[WIDTHBYTE*HEIGHT];
|
||||
|
||||
Reference in New Issue
Block a user