Merge pull request #2472 from fherrera124/fix-esp-idf-support

Fixing support for registering this library as an ESP-IDF component
This commit is contained in:
olikraus 2024-07-21 15:18:03 +02:00 committed by GitHub
commit d3185f812d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -1,10 +1,16 @@
cmake_minimum_required(VERSION 3.5)
project(u8g2)
set(COMPONENT_ADD_INCLUDEDIRS csrc)
file(GLOB COMPONENT_SRCS csrc/*.c)
file(GLOB COMPONENT_HDRS csrc/*.h)
if(COMMAND idf_component_register)
idf_component_register(SRCS "${COMPONENT_SRCS}" INCLUDE_DIRS csrc)
return()
endif()
project(u8g2)
if(COMMAND register_component)
set(COMPONENT_NAME ".")
register_component()