-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
63 lines (45 loc) · 1.22 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
# pico-infonesPlus
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
add_definitions( -DNDEBUG -DSPEAKER_ENABLED)
include(pico_sdk_import.cmake)
project(PicoSystem_InfoNes C CXX ASM)
pico_sdk_init()
add_executable(PicoSystem_InfoNes
main.cpp
tar.cpp
menu.cpp
RomLister.cpp
assets/builtinrom.c
)
pico_set_program_name(PicoSystem_InfoNes "PicoSystem_InfoNes")
pico_set_program_version(PicoSystem_InfoNes "v0.8-alpha")
pico_enable_stdio_uart(PicoSystem_InfoNes 0)
pico_enable_stdio_usb(PicoSystem_InfoNes 0)
include(${CMAKE_CURRENT_LIST_DIR}/picosystem/picosystem.cmake REQUIRED)
pico_set_linker_script(PicoSystem_InfoNes ${PICOSYSTEM_LINKER_SCRIPT})
message("Linker Script : ${PICOSYSTEM_LINKER_SCRIPT}")
target_link_libraries(PicoSystem_InfoNes PRIVATE
picosystem
pico_stdlib
pico_multicore
hardware_dma
hardware_pio
hardware_i2c
hardware_interp
hardware_timer
hardware_clocks
hardware_pwm
hardware_flash
infones
)
target_include_directories(PicoSystem_InfoNes
PRIVATE
pico_lib
infones
assets
.
)
add_subdirectory(infones)
pico_add_extra_outputs(PicoSystem_InfoNes)