CMakeLists.txt 310 B

12345678910111213
  1. idf_component_register(
  2. SRCS "resampler.c"
  3. INCLUDE_DIRS "."
  4. )
  5. # Optimise for ESP32/Xtensa: single-precision float, fast math, max optimisation
  6. target_compile_options(${COMPONENT_LIB} PRIVATE
  7. -Wno-calloc-transposed-args
  8. -O3
  9. -ffast-math
  10. -fsingle-precision-constant
  11. -fno-math-errno
  12. )