Files
AutoFilm-ESP32/components/hal_display/CMakeLists.txt

20 lines
562 B
CMake

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