CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. cmake_minimum_required (VERSION 3.6)
  2. project(CMSISDSPFastMath)
  3. include(configLib)
  4. include(configDsp)
  5. file(GLOB SRC "./*_*.c")
  6. add_library(CMSISDSPFastMath STATIC)
  7. configLib(CMSISDSPFastMath ${ROOT})
  8. configDsp(CMSISDSPFastMath ${ROOT})
  9. include(interpol)
  10. interpol(CMSISDSPFastMath)
  11. if (CONFIGTABLE AND ALLFAST)
  12. target_compile_definitions(CMSISDSPFastMath PUBLIC ARM_ALL_FAST_TABLES)
  13. endif()
  14. if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_F32)
  15. target_sources(CMSISDSPFastMath PRIVATE arm_cos_f32.c)
  16. endif()
  17. if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_Q15)
  18. target_sources(CMSISDSPFastMath PRIVATE arm_cos_q15.c)
  19. endif()
  20. if (NOT CONFIGTABLE OR ALLFAST OR ARM_COS_Q31)
  21. target_sources(CMSISDSPFastMath PRIVATE arm_cos_q31.c)
  22. endif()
  23. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_F32)
  24. target_sources(CMSISDSPFastMath PRIVATE arm_sin_f32.c)
  25. endif()
  26. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_Q15)
  27. target_sources(CMSISDSPFastMath PRIVATE arm_sin_q15.c)
  28. endif()
  29. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_Q31)
  30. target_sources(CMSISDSPFastMath PRIVATE arm_sin_q31.c)
  31. endif()
  32. target_sources(CMSISDSPFastMath PRIVATE arm_sqrt_q15.c)
  33. target_sources(CMSISDSPFastMath PRIVATE arm_sqrt_q31.c)
  34. target_sources(CMSISDSPFastMath PRIVATE arm_vlog_f32.c)
  35. target_sources(CMSISDSPFastMath PRIVATE arm_vexp_f32.c)
  36. ### Includes
  37. target_include_directories(CMSISDSPFastMath PUBLIC "${DSP}/Include")