CMakeLists.txt 535 B

12345678910111213
  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. set(include_dirs
  6. "${original_esp_timer_dir}/include"
  7. "${CMAKE_CURRENT_SOURCE_DIR}/../esp_hw_support/include")
  8. idf_component_mock(INCLUDE_DIRS ${include_dirs}
  9. REQUIRES esp_common
  10. MOCK_HEADER_FILES ${original_esp_timer_dir}/include/esp_timer.h)