-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
57 lines (45 loc) · 1.01 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
cmake_minimum_required(VERSION 3.12)
include(pico_sdk_import.cmake)
include(pico_extras_import.cmake)
set (projname "PicoAtom")
project(${projname} C CXX ASM)
pico_sdk_init()
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter" )
#
# Pi Pico
#
include_directories(. ILI9341 Atom AtomMMC PS2 Utils)
add_executable(${projname}
main.c
Atom.c
fake6502.c
6847.c
AtomMMC/AtoMMCInterface.c
AtomMMC/atmmc2core.c
AtomMMC/atmmc2wfn.c
AtomMMC/ff.c
AtomMMC/diskio.c
AtomMMC/mmcio.c
AtomMMC/wildcard.c
ILI9341/ILI9341_Driver.c
ILI9341/ILI9341_DMA.c
ILI9341/ILI9341_Dragon.c
ILI9341/ILI9341_GFX.c
ILI9341/ILI9341_Text.c
PS2/matrix_kbd.c
PS2/ps2kbd.c
Utils/delays.c
Utils/status.c
Utils/hexout.c
Utils/str_util.c
)
target_compile_definitions(${projname} PUBLIC -DSERIAL_STATUS )
target_link_libraries(${projname} PRIVATE
pico_multicore
pico_stdlib
hardware_pio
hardware_spi
hardware_dma
)
pico_add_extra_outputs(${projname})
pico_enable_stdio_uart(${projname} 1)