CMakeLists.txt 594 B

123456789101112131415161718192021
  1. set(COMPONENT_SRCDIRS "src" "src/utility" "src/Fonts")
  2. set(COMPONENT_ADD_INCLUDEDIRS "src" "$ENV{IDF_PATH}/components/bt/bluedroid/api/include/api")
  3. list(APPEND COMPONENT_REQUIRES "arduino")
  4. register_component()
  5. set(DEFINITIONS "ESP32")
  6. if (CONFIG_M5STACK_BASIC OR CONFIG_M5STACK_GRAY OR CONFIG_M5STACK_FIRE)
  7. list(APPEND DEFINITIONS "M5STACK")
  8. endif (CONFIG_M5STACK_BASIC OR CONFIG_M5STACK_GRAY OR CONFIG_M5STACK_FIRE)
  9. if(CONFIG_M5STACK_FIRE)
  10. list(APPEND DEFINITIONS "M5STACK_FIRE")
  11. endif(CONFIG_M5STACK_FIRE)
  12. target_compile_definitions(${COMPONENT_NAME} PUBLIC ${DEFINITIONS})