forked from fruit-bat/pico-zxspectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
75 lines (65 loc) · 1.65 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
foreach(target
ZxSpectrumPicomputerVga_640x480x60Hz
ZxSpectrumPicomputerVga_720x576x50Hz
)
add_executable(${target}
${zxspectrum_common_src}
${zxspectrum_rgb_src}
${picomputer_common_src}
${zxspectrum_rgb332_src}
main.cpp
)
target_link_libraries(${target}
${zxspectrum_common_libs}
pico_emu_utils
pico_vga_menu
pico_vga_332
tinyusb_host
tinyusb_board
hardware_pio
hardware_pwm
)
pico_enable_stdio_usb(${target} 0)
pico_enable_stdio_uart(${target} 0)
# create map/bin/hex file etc.
pico_add_extra_outputs(${target})
endforeach()
set(ZxSpectrumPicomputerVga_defines
${picomputer_common_defines}
SPK_PIN=9
VGA_ENC_RGB_332
PICOMPUTER_VGA
)
set(ZxSpectrumPicomputerVga_640x480x60Hz_defines
# Set the resolution of the menu screen
PCS_COLS=80
PCS_ROWS=30
# Set the VGA timing
VGA_MODE=VideoVGA
# The display resolution
DISPLAY_WIDTH_PIXELS=640
DISPLAY_HEIGHT_PIXELS=480
# The default interrupt source
ZX_SPECTRUM_INT_SRC=SyncToCpu
)
set(ZxSpectrumPicomputerVga_720x576x50Hz_defines
# Set the resolution of the menu screen
PCS_COLS=90
PCS_ROWS=30
SZ_FRAME_X=5
# Set the VGA timing
VGA_MODE=VideoDVD
# The display resolution
DISPLAY_WIDTH_PIXELS=720
DISPLAY_HEIGHT_PIXELS=576
# The default interrupt source
ZX_SPECTRUM_INT_SRC=SyncToDisplay
)
target_compile_definitions(ZxSpectrumPicomputerVga_640x480x60Hz PRIVATE
${ZxSpectrumPicomputerVga_defines}
${ZxSpectrumPicomputerVga_640x480x60Hz_defines}
)
target_compile_definitions(ZxSpectrumPicomputerVga_720x576x50Hz PRIVATE
${ZxSpectrumPicomputerVga_defines}
${ZxSpectrumPicomputerVga_720x576x50Hz_defines}
)