idf_component_register(SRCS "main.cpp" INCLUDE_DIRS "."
    REQUIRES imagenet_cls esp_timer heap esp_psram
    EMBED_FILES "cat.jpg")
file(SHA256 "${CMAKE_CURRENT_LIST_DIR}/cat.jpg" fixed_jpeg_sha)
if(NOT fixed_jpeg_sha STREQUAL "71a56b94233940cfc942457f3413ed248b847db4110eced52768852d87320508")
    message(FATAL_ERROR "V03 fixed upstream cat.jpg hash mismatch; retain input and inspect source")
endif()
idf_component_get_property(imagenet_dir espressif__imagenet_cls COMPONENT_DIR)
set(model "${imagenet_dir}/models/s3/imagenet_cls_mobilenetv2_s8_v1.espdl")
file(SHA256 "${model}" fixed_model_sha)
if(NOT fixed_model_sha STREQUAL "59124aace8bd5cd9e502b938b7d90c9f0949949ee0087b3841911f6a785180db")
    message(FATAL_ERROR "V03 fixed upstream S3 model hash mismatch; do not relabel another model")
endif()
target_compile_definitions(${COMPONENT_LIB} PRIVATE
    V03_IMAGE_SHA256="${fixed_jpeg_sha}" V03_MODEL_SHA256="${fixed_model_sha}")
