file(GLOB srcs "*.c")

get_filename_component(REPO_DIR ${IDF_PATH} DIRECTORY)

set(include_dirs "...")

idf_component_register(SRCS "${srcs}"
                       INCLUDE_DIRS "${include_dirs}"
                       REQUIRES unity cmock component_being_tested)

idf_build_set_property(COMPILE_DEFINITIONS "-DCONFIG_UNITY_ENABLE_COLOR" APPEND)

target_compile_options(${COMPONENT_LIB} PUBLIC --coverage)
target_link_libraries(${COMPONENT_LIB} --coverage)
