-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (35 loc) · 1.11 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
cmake_minimum_required(VERSION 3.24.1)
set(CMAKE_CXX_STANDARD 20)
include(pico_sdk_import.cmake)
project(picostation)
pico_sdk_init()
add_executable(picostation)
target_compile_definitions(
picostation PUBLIC
PICO_XOSC_STARTUP_DELAY_MULTIPLIER=64
)
target_sources(picostation PRIVATE
src/cmd.cpp
src/disc_image.cpp
src/hw_config.cpp
src/i2s.cpp
src/main.cpp
src/picostation.cpp
src/subq.cpp
src/utils.cpp
third_party/cueparser/cueparser.c
third_party/cueparser/fileabstract.c
third_party/cueparser/scheduler.c
third_party/posix_file.c
)
target_include_directories(picostation PRIVATE
third_party
.
)
add_subdirectory(third_party/no-OS-FatFS-SD-SPI-RPi-Pico/FatFs_SPI build)
add_subdirectory(third_party/RP2040_Pseudo_Atomic)
pico_enable_stdio_usb(picostation 0)
pico_generate_pio_header(picostation ${CMAKE_CURRENT_LIST_DIR}/pio/main.pio)
target_link_libraries(picostation PRIVATE FatFs_SPI hardware_dma hardware_pio hardware_pwm hardware_vreg pico_multicore pico_stdlib)
#pico_set_binary_type(picostation copy_to_ram)
pico_add_extra_outputs(picostation)