sTodo-m5paper-client/libraries/M5Unified/CMakeLists.txt
2025-06-30 20:47:33 +02:00

25 lines
527 B
CMake

set(COMPONENT_ADD_INCLUDEDIRS
src
)
file(GLOB SRCS
src/*.cpp
src/utility/*.cpp
src/utility/imu/*.cpp
)
set(COMPONENT_SRCS ${SRCS})
if (IDF_VERSION_MAJOR GREATER_EQUAL 5)
set(COMPONENT_REQUIRES M5GFX esp_adc driver)
else()
set(COMPONENT_REQUIRES M5GFX esp_adc_cal)
endif()
### If you use arduino-esp32 components, please activate next comment line.
# list(APPEND COMPONENT_REQUIRES arduino-esp32)
message(STATUS "M5Unified use component = ${COMPONENT_REQUIRES}" )
register_component()