# Include UI files from SquareLine Studio file(GLOB_RECURSE UI_SOURCES "ui/*.c") file(GLOB_RECURSE UI_HEADERS "ui/*.h") idf_component_register(SRCS "myi2c.c" "spi_lcd_touch_example_main.c" ${UI_SOURCES} INCLUDE_DIRS "." "ui" REQUIRES "lvgl") if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ui/ui.c") message(FATAL_ERROR "UI directory not found. Please ensure SquareLine Studio UI files are properly copied.") endif()