diff --git a/CMakeLists.txt b/CMakeLists.txt index b849c3c..100a9ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,9 @@ +set(headers + TFT_eSPI.h +) -idf_component_register(SRCS "TFT_eSPI.cpp" - INCLUDE_DIRS "." - PRIV_REQUIRES arduino) \ No newline at end of file +set(sources + TFT_eSPI.cpp +) + +idf_component_register(INCLUDE_DIRS . SRCS ${headers} ${sources} REQUIRES arduino-esp32 freertos esp_system)