CMakeLists.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. cmake_minimum_required (VERSION 3.14)
  2. project(CMSISDSPCommon)
  3. include(configLib)
  4. include(configDsp)
  5. add_library(CMSISDSPCommon STATIC arm_common_tables.c arm_common_tables_f16.c)
  6. configLib(CMSISDSPCommon ${ROOT})
  7. configDsp(CMSISDSPCommon ${ROOT})
  8. if (CONFIGTABLE AND ALLFFT)
  9. target_compile_definitions(CMSISDSPCommon PUBLIC ARM_ALL_FFT_TABLES)
  10. endif()
  11. if (CONFIGTABLE AND ALLFAST)
  12. target_compile_definitions(CMSISDSPCommon PUBLIC ARM_ALL_FAST_TABLES)
  13. endif()
  14. include(fft)
  15. fft(CMSISDSPCommon)
  16. include(interpol)
  17. interpol(CMSISDSPCommon)
  18. target_sources(CMSISDSPCommon PRIVATE arm_const_structs.c)
  19. target_sources(CMSISDSPCommon PRIVATE arm_const_structs_f16.c)
  20. ### Includes
  21. target_include_directories(CMSISDSPCommon PUBLIC "${DSP}/Include")
  22. if (NEON OR NEONEXPERIMENTAL)
  23. target_sources(CMSISDSPCommon PRIVATE "${DSP}/ComputeLibrary/Source/arm_cl_tables.c")
  24. endif()
  25. if (HELIUM OR MVEF)
  26. target_sources(CMSISDSPCommon PRIVATE "${DSP}/Source/CommonTables/arm_mve_tables.c")
  27. target_sources(CMSISDSPCommon PRIVATE "${DSP}/Source/CommonTables/arm_mve_tables_f16.c")
  28. endif()
  29. if (WRAPPER)
  30. target_compile_definitions(CMSISDSPCommon PUBLIC ARM_TABLE_BITREV_1024)
  31. target_compile_definitions(CMSISDSPCommon PUBLIC ARM_TABLE_TWIDDLECOEF_F32_4096)
  32. target_compile_definitions(CMSISDSPCommon PUBLIC ARM_TABLE_TWIDDLECOEF_Q31_4096)
  33. target_compile_definitions(CMSISDSPCommon PUBLIC ARM_TABLE_TWIDDLECOEF_Q15_4096)
  34. if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
  35. target_compile_definitions(CMSISDSPCommon PUBLIC ARM_TABLE_TWIDDLECOEF_F16_4096)
  36. endif()
  37. endif()