CMakeLists.txt 514 B

12345678910111213141516171819
  1. idf_build_get_property(target IDF_TARGET)
  2. set(srcs "test_event_main.c" "test_event_common.cpp")
  3. set(priv_requires "esp_event unity")
  4. if(NOT ${target} STREQUAL "linux")
  5. list(APPEND srcs
  6. "test_event_target.c")
  7. list(APPEND priv_requires
  8. "driver"
  9. "esp_timer"
  10. "test_utils")
  11. endif()
  12. idf_component_register(SRCS ${srcs}
  13. PRIV_INCLUDE_DIRS . ../../private_include
  14. PRIV_REQUIRES ${priv_requires}
  15. WHOLE_ARCHIVE)