esp-idf/components/esp_event/CMakeLists.txt

21 lines
632 B
CMake
Raw Normal View History

idf_build_get_property(target IDF_TARGET)
set(priv_include_dirs "private_include")
set(priv_requires "")
set(requires "log" "esp_common" "freertos")
set(srcs "default_event_loop.c"
"esp_event.c"
"esp_event_private.c")
if(${target} STREQUAL "linux")
list(APPEND requires "linux")
else()
list(APPEND priv_requires esp_timer)
endif()
2018-10-26 01:14:19 -04:00
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
PRIV_INCLUDE_DIRS ${priv_include_dirs}
REQUIRES ${requires}
PRIV_REQUIRES ${priv_requires}
LDFRAGMENTS linker.lf)