file(GLOB_RECURSE SRCS "*.c" # Include all .c files in src directory "api/*.c" # Include all .c files in src/api directory ) idf_component_register( SRCS "${SRCS}" INCLUDE_DIRS "." "api" )