set(requires json esp_http_client esp-tls esp_timer) idf_build_get_property(target IDF_TARGET) if(${target} STREQUAL "linux") list(APPEND EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/mocks/esp_timer" ) else() list(APPEND requires esp_timer) endif() idf_component_register(SRCS "image_downloader.c" INCLUDE_DIRS "include" REQUIRES ${requires} )