-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
66 lines (53 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
64
65
66
cmake_minimum_required(VERSION 3.13)
include(pico_sdk_import.cmake)
project(test_project C CXX ASM)
# do not edit!
add_definitions(-DLINUX_PLATFORM -DBUFFER_OPTIMIZATION)
# edit: choose eve platform
#add_definitions(-DEVE_1)
#add_definitions(-DEVE_2)
#add_definitions(-DEVE_3)
add_definitions(-DEVE_4)
# edit: choose clock source for eve4 platform
add_definitions(-DEVE_4_INTERNAL_OSC)
#add_definitions(-DEVE_4_EXTERNAL_OSC)
# edit: choose display type
#add_definitions(-DNTP_35)
#add_definitions(-DRTP_35)
#add_definitions(-DCTP_35)
#add_definitions(-DNTP_43)
#add_definitions(-DRTP_43)
#add_definitions(-DCTP_43)
#add_definitions(-DNTP_50)
#add_definitions(-DRTP_50)
#add_definitions(-DCTP_50)
#add_definitions(-DNTP_70)
#add_definitions(-DRTP_70)
#add_definitions(-DCTP_70)
#add_definitions(-DIPS_35)
#add_definitions(-DIPS_43)
#add_definitions(-DIPS_50)
#add_definitions(-DIPS_70)
add_definitions(-DIPS_101)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
pico_sdk_init()
set(sources
riverdi-eve-lib/eve_layer/Gpu_Hal.c
riverdi-eve-lib/eve_layer/CoPro_Cmds.c
riverdi-eve-lib/eve_layer/Hal_Utils.c
riverdi-eve-lib/app_layer/App_Common.c
main/platform.c
main/riverdi-demo.c
)
add_executable(riverdi-eve-demo-rp2040 ${sources})
pico_enable_stdio_usb(riverdi-eve-demo-rp2040 1)
pico_enable_stdio_uart(riverdi-eve-demo-rp2040 1)
pico_add_extra_outputs(riverdi-eve-demo-rp2040)
target_link_libraries(riverdi-eve-demo-rp2040 pico_stdlib hardware_spi)
include_directories(
main/
riverdi-eve-lib/riverdi_modules/
riverdi-eve-lib/eve_layer/
riverdi-eve-lib/app_layer/
)