mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
14 lines
354 B
CMake
14 lines
354 B
CMake
include($ENV{ESP_MATTER_DEVICE_PATH}/esp_matter_device.cmake)
|
|
|
|
set(requires led_driver)
|
|
|
|
if ("${button_type}" STREQUAL "iot")
|
|
list(APPEND requires iot_button)
|
|
else()
|
|
list(APPEND requires button)
|
|
endif()
|
|
|
|
idf_component_register(SRC_DIRS "${device_type}"
|
|
INCLUDE_DIRS include
|
|
REQUIRES "${requires}")
|