mirror of
https://github.com/grymoire/i2c_puppet-Linux.git
synced 2024-12-26 13:38:21 +01:00
31 lines
503 B
CMake
31 lines
503 B
CMake
|
add_executable(i2c_puppet
|
||
|
backlight.c
|
||
|
debug.c
|
||
|
fifo.c
|
||
|
gpioexp.c
|
||
|
puppet_i2c.c
|
||
|
interrupt.c
|
||
|
keyboard.c
|
||
|
main.c
|
||
|
reg.c
|
||
|
touchpad.c
|
||
|
usb.c
|
||
|
usb_descriptors.c
|
||
|
)
|
||
|
|
||
|
add_compile_options(-Wall -Wextra -Wpedantic)
|
||
|
|
||
|
target_include_directories(i2c_puppet PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||
|
|
||
|
target_link_libraries(i2c_puppet
|
||
|
cmsis_core
|
||
|
hardware_i2c
|
||
|
hardware_pwm
|
||
|
pico_bootsel_via_double_reset
|
||
|
pico_stdlib
|
||
|
tinyusb_device
|
||
|
)
|
||
|
|
||
|
# create map/bin/hex/uf2 file in addition to elf
|
||
|
pico_add_extra_outputs(i2c_puppet)
|