mirror of
https://github.com/m5stack/M5Stack.git
synced 2026-05-20 10:06:46 -07:00
21 lines
594 B
CMake
21 lines
594 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})
|
|
|