CMakeLists.txt 453 B

12345678910111213141516
  1. set(srcs)
  2. set(public_include "include")
  3. if(CONFIG_SOC_GPTIMER_SUPPORTED)
  4. list(APPEND srcs "src/gptimer.c"
  5. "src/gptimer_priv.c")
  6. endif()
  7. if(CONFIG_SOC_TIMER_SUPPORT_ETM)
  8. list(APPEND srcs "src/gptimer_etm.c")
  9. endif()
  10. idf_component_register(SRCS ${srcs}
  11. INCLUDE_DIRS ${public_include}
  12. PRIV_REQUIRES "esp_pm"
  13. LDFRAGMENTS "linker.lf"
  14. )