# 指定引用库的头文件路径,否则会提示找不到头文件 set(srcs "main.c" ) set(module_srcs "module/Printer_run.c" "module/Printer_bsp.c" "module/Font24x24ASCII.c" "module/button.c" "module/USB/usb_cdc.c" "module/esp_sleep.c" ) idf_component_register(SRCS ${srcs} ${module_srcs} PRIV_REQUIRES spi_flash driver esp_event esp_timer espressif__tinyusb espressif__esp_tinyusb esp_adc espressif__button INCLUDE_DIRS "." INCLUDE_DIRS "module")