From e1bfdd7c91ad104e324791f6b07a7ab65dba73e3 Mon Sep 17 00:00:00 2001 From: Ken Van Hoeylandt Date: Sat, 8 Feb 2025 21:42:14 +0100 Subject: [PATCH] Improve source file processing in CMakeLists.txt (#211) --- Boards/CYD-2432S024C/CMakeLists.txt | 4 +++- Boards/LilygoTdeck/CMakeLists.txt | 4 +++- Boards/M5stackCore2/CMakeLists.txt | 4 +++- Boards/UnPhone/CMakeLists.txt | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Boards/CYD-2432S024C/CMakeLists.txt b/Boards/CYD-2432S024C/CMakeLists.txt index 302d1395..2e1d149a 100644 --- a/Boards/CYD-2432S024C/CMakeLists.txt +++ b/Boards/CYD-2432S024C/CMakeLists.txt @@ -1,5 +1,7 @@ +file(GLOB_RECURSE SOURCE_FILES Source/*.c*) + idf_component_register( - SRC_DIRS "Source" "Source/hal" + SRCS ${SOURCE_FILES} INCLUDE_DIRS "Source" REQUIRES Tactility esp_lvgl_port esp_lcd_touch_cst816s ILI934x driver vfs fatfs ) diff --git a/Boards/LilygoTdeck/CMakeLists.txt b/Boards/LilygoTdeck/CMakeLists.txt index d0df65f2..6211f2e4 100644 --- a/Boards/LilygoTdeck/CMakeLists.txt +++ b/Boards/LilygoTdeck/CMakeLists.txt @@ -1,5 +1,7 @@ +file(GLOB_RECURSE SOURCE_FILES Source/*.c*) + idf_component_register( - SRC_DIRS "Source" "Source/hal" + SRCS ${SOURCE_FILES} INCLUDE_DIRS "Source" REQUIRES Tactility esp_lvgl_port esp_lcd esp_lcd_touch_gt911 driver esp_adc ) diff --git a/Boards/M5stackCore2/CMakeLists.txt b/Boards/M5stackCore2/CMakeLists.txt index 2e1f3a36..27fa3eae 100644 --- a/Boards/M5stackCore2/CMakeLists.txt +++ b/Boards/M5stackCore2/CMakeLists.txt @@ -1,5 +1,7 @@ +file(GLOB_RECURSE SOURCE_FILES Source/*.c*) + idf_component_register( - SRC_DIRS "Source" "Source/hal" "Source/ft6x36" "Source/axp192" + SRCS ${SOURCE_FILES} INCLUDE_DIRS "Source" REQUIRES Tactility esp_lvgl_port esp_lcd ILI934x driver vfs fatfs ) diff --git a/Boards/UnPhone/CMakeLists.txt b/Boards/UnPhone/CMakeLists.txt index 06be3b4f..efaf8307 100644 --- a/Boards/UnPhone/CMakeLists.txt +++ b/Boards/UnPhone/CMakeLists.txt @@ -1,5 +1,7 @@ +file(GLOB_RECURSE SOURCE_FILES Source/*.c*) + idf_component_register( - SRC_DIRS "Source" "Source/hal" "Source/hx8357" + SRCS ${SOURCE_FILES} INCLUDE_DIRS "Source" REQUIRES Tactility esp_lvgl_port esp_io_expander esp_io_expander_tca95xx_16bit BQ24295 esp_lcd_touch esp_lcd_touch_xpt2046 )