-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
63 lines (54 loc) · 1.56 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
cmake_minimum_required(VERSION 3.13)
include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)
include($ENV{PICO_EXTRAS_PATH}/external/pico_extras_import.cmake)
set(project_name "RPi_Pico_WAV_Player" C CXX)
project(${project_name})
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
add_subdirectory(lib/file_menu)
add_subdirectory(lib/LcdElementBox)
add_subdirectory(lib/pico_audio_i2s_32b)
add_subdirectory(lib/pico_audio_i2s_32b/src/pico_audio_32b)
add_subdirectory(lib/pico_fatfs)
add_subdirectory(lib/pico_flash_param)
add_subdirectory(lib/pico_st7735_80x160)
add_subdirectory(lib/pico_stdio_usb_revised)
add_subdirectory(lib/picojpeg)
add_subdirectory(lib/PlayAudio)
set(bin_name ${PROJECT_NAME})
add_executable(${bin_name}
src/main.cpp
src/ConfigMenu.cpp
src/ImageFitter.cpp
src/lcd_background.cpp
src/LcdCanvas.cpp
src/power_manage.cpp
src/TagRead.cpp
src/ui_control.cpp
src/UIMode.cpp
src/utf_conv.cpp
)
target_link_libraries(${bin_name}
hardware_adc
hardware_sleep
hardware_uart
pico_stdlib
file_menu
LcdElementBox
pico_audio_32b
pico_audio_i2s_32b
pico_fatfs
pico_flash_param
pico_runtime_init
pico_st7735_80x160
pico_stdio_usb_revised
picojpeg
PlayAudio
)
#pico_enable_stdio_usb(${bin_name} 1) --> pico_stdio_uart
#pico_enable_stdio_uart(${bin_name} 1) --> pico_stdio_usb_revised
target_compile_definitions(${bin_name} PRIVATE
# NO_BATTERY_VOLTAGE_CHECK
)
pico_add_extra_outputs(${bin_name})