CMakeLists.txt 617 B

123456789101112131415161718192021
  1. idf_build_get_property(target IDF_TARGET)
  2. if(${target} STREQUAL "linux")
  3. return() # This component is not supported by the POSIX/Linux simulator
  4. endif()
  5. idf_build_get_property(arch IDF_TARGET_ARCH)
  6. if(NOT "${arch}" STREQUAL "xtensa")
  7. return()
  8. endif()
  9. set(xtensa_perfmon_srcs "xtensa_perfmon_access.c"
  10. "xtensa_perfmon_apis.c"
  11. "xtensa_perfmon_masks.c")
  12. idf_component_register(SRCS "${xtensa_perfmon_srcs}"
  13. INCLUDE_DIRS "include"
  14. REQUIRES "xtensa")
  15. target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")