-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
36 lines (29 loc) · 1012 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
set(PROJECTNAME keyboard)
cmake_minimum_required(VERSION 3.14)
include(pico_sdk_import.cmake)
project(${PROJECTNAME} VERSION 1.0.0)
add_executable(${PROJECTNAME}
main.c
usb_descriptors.c
led.c
save.c
keyboard.c)
pico_sdk_init()
#pico_enable_stdio_usb(${PROJECTNAME} 0)
#pico_enable_stdio_uart(${PROJECTNAME} 1)
#pico_add_extra_outputs(${PROJECTNAME})
target_link_libraries(${PROJECTNAME}
pico_stdlib
tinyusb_device
tinyusb_board
hardware_gpio
hardware_flash
#hardware_adc
#hardware_i2c
#hardware_spi
#hardware_uart
)
#TinyUSB stuff so it can pick up tinyusb_config.h
target_include_directories(${PROJECTNAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR})
pico_add_extra_outputs(${PROJECTNAME})