1idf_build_get_property(target IDF_TARGET)
2
3set(srcs "esp_timer_cxx.cpp" "esp_exception.cpp" "gpio_cxx.cpp")
4set(requires "esp_timer" "driver")
5
6if(NOT ${target} STREQUAL "linux")
7    list(APPEND srcs
8        "i2c_cxx.cpp"
9        "esp_event_api.cpp"
10        "esp_event_cxx.cpp")
11    list(APPEND requires "esp_event")
12endif()
13
14idf_component_register(SRCS ${srcs}
15                    INCLUDE_DIRS "include"
16                    REQUIRES ${requires})
17