esp-idf/components/esp_event/test_apps/main/CMakeLists.txt
Jakob Hasse 8df4625c84 refactor(esp_event): improved esp_event unit tests
* Decomposed tests into atomic unit tests
* Made tests less time-dependent, hence more robust
  on different platforms (ESP32, QEMU, Linux)
* Ported most of the tests to linux
* Removed some redundant tests
* Fixed bug the tests discovered
* Simplified parts of the tests to be more clear
* Partially used C++ to simplify setup/teardown
* Unified setup/teardown in general
2023-09-12 17:10:18 +08:00

20 lines
514 B
CMake

idf_build_get_property(target IDF_TARGET)
set(srcs "test_event_main.c" "test_event_common.cpp")
set(priv_requires "esp_event unity")
if(NOT ${target} STREQUAL "linux")
list(APPEND srcs
"test_event_target.c")
list(APPEND priv_requires
"driver"
"esp_timer"
"test_utils")
endif()
idf_component_register(SRCS ${srcs}
PRIV_INCLUDE_DIRS . ../../private_include
PRIV_REQUIRES ${priv_requires}
WHOLE_ARCHIVE)