One-KVM/hid/pico/src/CMakeLists.txt
mofeng-git 7b3335ea94 Add support for PiKVM Switch and related features
This commit introduces several new components and improvements:
- Added Switch module with firmware update and configuration support
- Implemented new media streaming capabilities
- Updated various UI elements and CSS styles
- Enhanced keyboard and mouse event handling
- Added new validators and configuration options
- Updated Python version support to 3.13
- Improved error handling and logging
2025-02-01 01:08:36 +00:00

40 lines
886 B
CMake

set(target_name hid)
add_executable(${target_name})
target_sources(${target_name} PRIVATE
main.c
ph_outputs.c
ph_usb.c
ph_usb_kbd.c
ph_usb_mouse.c
ph_ps2.c
ph_cmds.c
ph_com.c
ph_com_bridge.c
ph_com_spi.c
ph_com_uart.c
ph_debug.c
${PS2_PATH}/ps2out.c
${PS2_PATH}/ps2in.c
${PS2_PATH}/ps2kb.c
${PS2_PATH}/ps2ms.c
${PS2_PATH}/scancodes.c
)
target_link_options(${target_name} PRIVATE -Xlinker --print-memory-usage)
target_compile_options(${target_name} PRIVATE -Wall -Wextra)
target_include_directories(${target_name} PRIVATE ${CMAKE_CURRENT_LIST_DIR} ${PS2_PATH})
pico_generate_pio_header(${target_name} ${PS2_PATH}/ps2out.pio)
pico_generate_pio_header(${target_name} ${PS2_PATH}/ps2in.pio)
target_link_libraries(${target_name} PRIVATE
pico_stdlib
pico_unique_id
hardware_pio
hardware_spi
hardware_watchdog
tinyusb_device
)
pico_add_extra_outputs(${target_name})