Files
AutoFilm-ESP32/components/hal_temp/CMakeLists.txt
gronod 06acd84928
ci / test (push) Successful in 2m6s
ci / firmware (jc4827w543, sdkconfig.s3, esp32s3) (push) Successful in 3m42s
ci / firmware (wroom, sdkconfig.wroom, esp32) (push) Successful in 3m44s
Add esp_timer to hal_temp requires
2026-09-17 09:58:29 +01:00

20 lines
563 B
CMake

set(srcs)
set(priv_inc)
set(priv_req driver esp_timer)
if(IDF_TARGET STREQUAL "esp32")
list(APPEND srcs hal_temp.c)
list(APPEND priv_req board_wroom onewire_bus)
elseif(IDF_TARGET STREQUAL "esp32s3")
list(APPEND srcs hal_temp.c)
list(APPEND priv_req board_jc4827w543 onewire_bus)
else()
list(APPEND srcs stub/hal_temp.c)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
PRIV_INCLUDE_DIRS ${priv_inc}
REQUIRES driver
PRIV_REQUIRES ${priv_req})