CMakeLists.txt 655 B

12345678910111213141516171819202122
  1. set(requires "unity"
  2. "test_utils"
  3. "driver"
  4. "esp_timer")
  5. set(excludes "test_ipc_isr.c"
  6. "test_ipc_isr.S"
  7. "test_ipc.c")
  8. if(IDF_TARGET STREQUAL "esp32" OR IDF_TARGET STREQUAL "esp32s3")
  9. # If the target is esp32 or esp32s3, we can compile the IPC
  10. # tests.
  11. set(excludes "")
  12. # Add a required dependency
  13. list(APPEND requires "cmock")
  14. endif()
  15. idf_component_register(SRC_DIRS .
  16. EXCLUDE_SRCS "${excludes}"
  17. PRIV_INCLUDE_DIRS .
  18. PRIV_REQUIRES "${requires}")
  19. target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")