-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
69 lines (44 loc) · 1.39 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
cmake_minimum_required(VERSION 3.12)
set(PICO_EXTRAS_PATH F:/Downloads/pico-extras-master/pico-extras-master)
# Pull in PICO SDK (must be before project)
include(pico_sdk_import.cmake)
include(pico_extras_import.cmake)
project(pico_examples C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(PICO_EXAMPLES_PATH ${PROJECT_SOURCE_DIR})
# Initialize the SDK
pico_sdk_init()
include(example_auto_set_url.cmake)
set(project_name PICO_GB_Bootloader)
project(${project_name})
set(src
boot.c
GBCode/Bootloader/GB/bootloadercode.c
#ROMS
Roms/DRMARIO.c
Roms/TETRIS.c
Roms/ZELDA.c
Roms/ALLEYWAY.c
Roms/SUPERMARIOLAND.c
Roms/MARIOANDYOSHI.c
Roms/ALSTARCHALLENGE2.c
Roms/pocket.c
)
set(headers
)
add_executable(${project_name} ${src} ${headers})
# Pull in our pico_stdlib which aggregates commonly used features
target_link_libraries(${project_name} pico_stdlib)
#target_link_libraries(${project_name} pico_multicore)
target_link_libraries(${project_name} hardware_pio)
#target_link_libraries(${project_name} hardware_spi)
#target_link_libraries(${project_name} pico_sd_card)
# enable usb output, disable uart output
pico_enable_stdio_usb(${project_name} 0)
pico_enable_stdio_uart(${project_name} 0)
# create map/bin/hex/uf2 file etc.
pico_add_extra_outputs(${project_name})
# add url via pico_set_program_url
example_auto_set_url(${project_name})
pico_set_binary_type(${project_name} copy_to_ram)