Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

55 lignes
1.7 KiB

  1. cmake_minimum_required (VERSION 3.14)
  2. project(CMSISDSPMatrix)
  3. include(configLib)
  4. include(configDsp)
  5. file(GLOB SRCF64 "./*_f64.c")
  6. file(GLOB SRCF32 "./*_f32.c")
  7. file(GLOB SRCF16 "./*_f16.c")
  8. file(GLOB SRCQ31 "./*_q31.c")
  9. file(GLOB SRCQ15 "./*_q15.c")
  10. file(GLOB SRCQ7 "./*_q7.c")
  11. file(GLOB SRCU32 "./*_u32.c")
  12. file(GLOB SRCU16 "./*_u16.c")
  13. file(GLOB SRCU8 "./*_u8.c")
  14. add_library(CMSISDSPMatrix STATIC ${SRCF64})
  15. target_sources(CMSISDSPMatrix PRIVATE ${SRCF32})
  16. if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
  17. target_sources(CMSISDSPMatrix PRIVATE ${SRCF16})
  18. endif()
  19. target_sources(CMSISDSPMatrix PRIVATE ${SRCQ31})
  20. target_sources(CMSISDSPMatrix PRIVATE ${SRCQ15})
  21. target_sources(CMSISDSPMatrix PRIVATE ${SRCQ7})
  22. target_sources(CMSISDSPMatrix PRIVATE ${SRCU32})
  23. target_sources(CMSISDSPMatrix PRIVATE ${SRCU16})
  24. target_sources(CMSISDSPMatrix PRIVATE ${SRCU8})
  25. configLib(CMSISDSPMatrix ${ROOT})
  26. configDsp(CMSISDSPMatrix ${ROOT})
  27. ### Includes
  28. target_include_directories(CMSISDSPMatrix PUBLIC "${DSP}/Include")
  29. if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
  30. target_sources(CMSISDSPMatrix PRIVATE arm_mat_add_f16.c)
  31. target_sources(CMSISDSPMatrix PRIVATE arm_mat_sub_f16.c)
  32. target_sources(CMSISDSPMatrix PRIVATE arm_mat_trans_f16.c)
  33. target_sources(CMSISDSPMatrix PRIVATE arm_mat_scale_f16.c)
  34. target_sources(CMSISDSPMatrix PRIVATE arm_mat_mult_f16.c)
  35. target_sources(CMSISDSPMatrix PRIVATE arm_mat_vec_mult_f16.c)
  36. target_sources(CMSISDSPMatrix PRIVATE arm_mat_cmplx_trans_f16.c)
  37. target_sources(CMSISDSPMatrix PRIVATE arm_mat_cmplx_mult_f16.c)
  38. target_sources(CMSISDSPMatrix PRIVATE arm_mat_inverse_f16.c)
  39. target_sources(CMSISDSPMatrix PRIVATE arm_mat_init_f16.c)
  40. target_sources(CMSISDSPMatrix PRIVATE arm_mat_cholesky_f16.c)
  41. endif()