Config.cmake 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. cmake_minimum_required (VERSION 3.14)
  2. if (CONFIGTABLE AND ALLFAST)
  3. target_compile_definitions(CMSISDSP PUBLIC ARM_ALL_FAST_TABLES)
  4. endif()
  5. if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_F32)
  6. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_cos_f32.c)
  7. endif()
  8. if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_Q15)
  9. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_cos_q15.c)
  10. endif()
  11. if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_Q31)
  12. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_cos_q31.c)
  13. endif()
  14. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_F32)
  15. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_sin_f32.c)
  16. endif()
  17. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_Q15)
  18. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_sin_q15.c)
  19. endif()
  20. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_Q31)
  21. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_sin_q31.c)
  22. endif()
  23. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SQRT_Q31)
  24. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_sqrt_q31.c)
  25. endif()
  26. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SQRT_Q15)
  27. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_sqrt_q15.c)
  28. endif()
  29. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vlog_f32.c)
  30. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vlog_f64.c)
  31. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vexp_f32.c)
  32. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vexp_f64.c)
  33. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vlog_q31.c)
  34. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vlog_q15.c)
  35. if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
  36. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vlog_f16.c)
  37. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vexp_f16.c)
  38. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_vinverse_f16.c)
  39. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_atan2_f16.c)
  40. endif()
  41. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_divide_q15.c)
  42. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_divide_q31.c)
  43. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_atan2_f32.c)
  44. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_atan2_q31.c)
  45. target_sources(CMSISDSP PRIVATE FastMathFunctions/arm_atan2_q15.c)