summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 9f1e8a19b859c81249d063377ed853926b82bf63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required(VERSION 3.12)

include(pico_sdk_import.cmake)

project(pixelhub C CXX)
set(CMAKE_CXX_STANDARD 17)

pico_sdk_init()

include(Pico-DMX/interfaceLibForPicoSDK.cmake)

add_executable(pixelhub pixelhub.cpp)
target_link_libraries(pixelhub
                      pico_stdlib
		      hardware_pio
		      hardware_dma
		      picodmx)
pico_add_extra_outputs(pixelhub)

pico_generate_pio_header(pixelhub ${CMAKE_CURRENT_LIST_DIR}/ws2812.pio)
target_include_directories(pixelhub PRIVATE ${CMAKE_CURRENT_LIST_DIR})