CMakeLists.txt 436 B

123456789
  1. # NOTE: This kind of mocking currently works on Linux targets only.
  2. # On Espressif chips, too many dependencies are missing at the moment.
  3. message(STATUS "building ESP TIMER MOCKS")
  4. idf_component_get_property(original_esp_timer_dir esp_timer COMPONENT_OVERRIDEN_DIR)
  5. idf_component_mock(INCLUDE_DIRS "${original_esp_timer_dir}/include"
  6. REQUIRES esp_common
  7. MOCK_HEADER_FILES ${original_esp_timer_dir}/include/esp_timer.h)