Pico-PIO-USB/example/capture_hid_report/CMakeLists.txt
Blake Felt 9f438bdd84 Created cmake file for this as a proper library.
Edited example cmake files to use library rather than manually add the sources.

Removed unused include that needed an extra library to compile.

Fixed a small compile warning when comparing signed to unsigned.
2022-05-21 15:47:31 -06:00

15 lines
477 B
CMake
Executable file

set(target_name capture_hid_report)
add_executable(${target_name})
pico_enable_stdio_usb(${target_name} 1)
target_sources(${target_name} PRIVATE
capture_hid_report.c
)
# print memory usage, enable all warnings
target_link_options(${target_name} PRIVATE -Xlinker --print-memory-usage)
target_compile_options(${target_name} PRIVATE -Wall -Wextra)
target_link_libraries(${target_name} PRIVATE pico_stdlib pico_multicore pico_pio_usb)
pico_add_extra_outputs(${target_name})