idf_component_register(SRCS "sim_main.c" "sim_stubs.c" "sim_timer.c"
                       INCLUDE_DIRS "include"
                       REQUIRES esp_http_server esp_timer esp_event json main freertos)
target_link_libraries(${COMPONENT_LIB} INTERFACE m)
# main's objects need esp_timer and libm, which come after it on the link line: link sim (and libm) last
target_link_libraries(__idf_main INTERFACE ${COMPONENT_LIB} m)
