mirror of
https://github.com/Fishwaldo/ESP32-Chimera-Core.git
synced 2025-03-15 19:31:26 +00:00
19 lines
593 B
CMake
19 lines
593 B
CMake
set(COMPONENT_SRCDIRS "src" "src/utility" "src/Fonts")
|
|
set(COMPONENT_ADD_INCLUDEDIRS "src" "$ENV{IDF_PATH}/components/bt/bluedroid/api/include/api")
|
|
list(APPEND COMPONENT_REQUIRES "arduino")
|
|
|
|
|
|
register_component()
|
|
|
|
|
|
set(DEFINITIONS "ESP32")
|
|
|
|
if (CONFIG_M5STACK_BASIC OR CONFIG_M5STACK_GRAY OR CONFIG_M5STACK_FIRE)
|
|
list(APPEND DEFINITIONS "M5STACK")
|
|
endif (CONFIG_M5STACK_BASIC OR CONFIG_M5STACK_GRAY OR CONFIG_M5STACK_FIRE)
|
|
|
|
if(CONFIG_M5STACK_FIRE)
|
|
list(APPEND DEFINITIONS "M5STACK_FIRE")
|
|
endif(CONFIG_M5STACK_FIRE)
|
|
|
|
target_compile_definitions(${COMPONENT_NAME} PUBLIC ${DEFINITIONS})
|