-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
66 lines (44 loc) · 1.33 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)
# initialize the SDK based on PICO_SDK_PATH
# note: this must happen before project()
include(pico_sdk_import.cmake)
project(cgm)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
# rest of your project
add_executable(cgm_app
CGM_Display.c
EPD_2in13_V3.c
main.cpp
tcp_client.cpp
)
# enable usb output, disable uart output
pico_enable_stdio_usb(cgm_app 1)
pico_enable_stdio_uart(cgm_app 0)
# Add pico_stdlib library which aggregates commonly used features
target_link_libraries(cgm_app pico_stdlib)
target_compile_definitions(cgm_app PRIVATE
)
target_include_directories(cgm_app PRIVATE
${CMAKE_CURRENT_LIST_DIR}
${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts
)
add_subdirectory(lib/Config)
add_subdirectory(lib/e-Paper)
add_subdirectory(lib/Fonts)
add_subdirectory(lib/GUI)
#add_subdirectory(examples)
include_directories(lib/Config)
include_directories(lib/GUI)
target_link_libraries(cgm_app
pico_cyw43_arch_lwip_threadsafe_background
pico_stdlib
pico_stdio
GUI
Fonts
Config
pico_stdlib
hardware_spi
)
# create map/bin/hex/uf2 file in addition to ELF.
pico_add_extra_outputs(cgm_app)