CMakeLists.txt 1.2 KB

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