diff --git a/CMakeLists.txt b/CMakeLists.txt index ffb8ab3..95f95e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,9 +6,10 @@ if(${ESP_PLATFORM}) list(APPEND SRCS src/cfglr_nvs.c src/cfglr_signal_idf_event.c) endif() -# make LVGL configurable -list(APPEND REQUIRES lvgl) -list(APPEND SRCS src/cfglr_signal_lvgl.c) +if(DEFINED LV_CONF_SKIP) + list(APPEND REQUIRES lvgl) + list(APPEND SRCS src/cfglr_signal_lvgl.c) +endif() idf_component_register( SRCS ${SRCS}