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