forked from raspberrypi/pico-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (26 loc) · 894 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if (PICO_ON_DEVICE AND TARGET pico_scanvideo_dpi)
add_executable(mario_tiles
mario_tiles.c
data.c
data.h
)
add_compile_definitions(mario_tiles PRIVATE
# DISABLE_HPIXELS
PICO_SCANVIDEO_MAX_SCANLINE_BUFFER_WORDS=200
PICO_SCANVIDEO_PLANE_COUNT=2
PICO_SCANVIDEO_PLANE2_VARIABLE_FRAGMENT_DMA=1
PICO_SCANVIDEO_MAX_SCANLINE_BUFFER2_WORDS=200
PICO_SCANVIDEO_SCANLINE_BUFFER_COUNT=5
PICO_SCANVIDEO_ENABLE_VIDEO_CLOCK_DOWN=1
)
target_link_libraries(mario_tiles PRIVATE
pico_stdlib
pico_multicore
pico_scanvideo_dpi
render)
if (PICO_ON_DEVICE)
target_link_libraries(mario_tiles PRIVATE
hardware_interp)
endif()
pico_add_extra_outputs(mario_tiles)
endif()