-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
41 lines (30 loc) · 828 Bytes
/
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
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(pico-sbus)
# initialize the Raspberry Pi Pico SDK
pico_sdk_init()
# rest of your project
add_executable(pico-sbus
pico-sbus.c
sbus/sbus.c
sbus-hid.c
input-mapping.c
usb_descriptors.c
)
#pico_set_binary_type(pico-sbus no_flash)
#add_compile_definitions(PICO_STDOUT_MUTEX)
target_include_directories(pico-sbus PRIVATE ${CMAKE_CURRENT_LIST_DIR} . sbus)
# Stdio output usb/sbus
pico_enable_stdio_usb(pico-sbus 0)
pico_enable_stdio_uart(pico-sbus 1)
target_link_libraries(pico-sbus
pico_stdlib
pico_multicore
pico_divider
pico_mem_ops
pico_unique_id
tinyusb_device
tinyusb_board)
pico_add_extra_outputs(pico-sbus)