CMakeLists.txt 649 B

1234567891011121314151617181920212223
  1. set(srcs "ccomp_timer.c"
  2. "test_runner.c"
  3. "test_utils.c")
  4. if(CONFIG_IDF_TARGET_ESP32)
  5. list(APPEND srcs "ref_clock_impl_rmt_pcnt.c")
  6. else()
  7. list(APPEND srcs "ref_clock_impl_timergroup.c")
  8. endif()
  9. if(CONFIG_IDF_TARGET_ARCH_RISCV)
  10. list(APPEND srcs "ccomp_timer_impl_riscv.c")
  11. endif()
  12. if(CONFIG_IDF_TARGET_ARCH_XTENSA)
  13. list(APPEND srcs "ccomp_timer_impl_xtensa.c")
  14. endif()
  15. idf_component_register(SRCS ${srcs}
  16. INCLUDE_DIRS include
  17. PRIV_INCLUDE_DIRS private_include
  18. REQUIRES spi_flash idf_test cmock
  19. PRIV_REQUIRES perfmon esp_ipc driver)