#Inicializa com as variaveis vazias, caso o componente não seja habilitado, não adiciona os arquivos .c e .h do componente set(SOURCES_C "") set(INCLUDE_DIRS "") ## ## confere se o componente foi habilitado no menuconfig, caso sim, adiciona os arquivos .c e .h do componente ## if(CONFIG_ENERVISION_HW_EMDS_V4) file(GLOB_RECURSE SOURCES_C *.c) set(INCLUDE_DIRS "include") set(COMPONENT_STATUS "HABILITADO") else() set(COMPONENT_STATUS "DESABILITADO") endif() idf_component_register(SRCS ${SOURCES_C} INCLUDE_DIRS ${INCLUDE_DIRS} REQUIRES esp_lcd driver lvgl nvs_flash ) get_filename_component(COMPONENT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME) message("") message("") message("#################################################") message("## DISPLAY SELECIONADO: TFT 4.3 Capacitivo ##") message("## COMPONENTE: ${COMPONENT_NAME} ##") message("## STATUS: ${COMPONENT_STATUS} ##") message("#################################################") message("") message("")