-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
55 lines (39 loc) · 1.13 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
# SPDX-FileCopyrightText: 2023 Stephen Merrony
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.13)
include(pico_sdk_import.cmake)
project(
picowpanel
VERSION 0.1.0
LANGUAGES C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE Release)
set(PICO_BOARD pico_w)
pico_sdk_init()
add_executable(picowpanel ${SOURCES})
pico_generate_pio_header(picowpanel ${CMAKE_CURRENT_LIST_DIR}/src/hub75.pio)
target_sources(picowpanel PUBLIC
${CMAKE_SOURCE_DIR}/src/graphics.c
${CMAKE_SOURCE_DIR}/src/info_items.c
${CMAKE_SOURCE_DIR}/src/rgbmatrix.c
${CMAKE_SOURCE_DIR}/src/mqtt.c
${CMAKE_SOURCE_DIR}/src/picowpanel.c
)
target_include_directories(picowpanel PRIVATE
${CMAKE_CURRENT_LIST_DIR}
)
# target_compile_definitions(picowpanel PRIVATE
# PICO_DEFAULT_UART_TX_PIN=28
# PICO_DEFAULT_UART_RX_PIN=29
# )
target_compile_options(picowpanel PRIVATE -Werror -Wall -Wextra)
pico_enable_stdio_usb(picowpanel 1)
target_link_libraries(picowpanel
pico_cyw43_arch_lwip_threadsafe_background
pico_lwip_mqtt
pico_stdlib
hardware_pio
pico_multicore
)
pico_add_extra_outputs(picowpanel)