1cmake_minimum_required (VERSION 3.14) 2 3project(CMSISDSPDistance) 4 5include(configLib) 6include(configDsp) 7 8file(GLOB SRC "./*_*.c") 9 10add_library(CMSISDSPDistance STATIC) 11 12target_sources(CMSISDSPDistance PRIVATE arm_boolean_distance.c) 13target_sources(CMSISDSPDistance PRIVATE arm_braycurtis_distance_f32.c) 14target_sources(CMSISDSPDistance PRIVATE arm_canberra_distance_f32.c) 15target_sources(CMSISDSPDistance PRIVATE arm_chebyshev_distance_f32.c) 16target_sources(CMSISDSPDistance PRIVATE arm_cityblock_distance_f32.c) 17target_sources(CMSISDSPDistance PRIVATE arm_correlation_distance_f32.c) 18target_sources(CMSISDSPDistance PRIVATE arm_cosine_distance_f32.c) 19target_sources(CMSISDSPDistance PRIVATE arm_dice_distance.c) 20target_sources(CMSISDSPDistance PRIVATE arm_euclidean_distance_f32.c) 21target_sources(CMSISDSPDistance PRIVATE arm_hamming_distance.c) 22target_sources(CMSISDSPDistance PRIVATE arm_jaccard_distance.c) 23target_sources(CMSISDSPDistance PRIVATE arm_jensenshannon_distance_f32.c) 24target_sources(CMSISDSPDistance PRIVATE arm_kulsinski_distance.c) 25target_sources(CMSISDSPDistance PRIVATE arm_minkowski_distance_f32.c) 26target_sources(CMSISDSPDistance PRIVATE arm_rogerstanimoto_distance.c) 27target_sources(CMSISDSPDistance PRIVATE arm_russellrao_distance.c) 28target_sources(CMSISDSPDistance PRIVATE arm_sokalmichener_distance.c) 29target_sources(CMSISDSPDistance PRIVATE arm_sokalsneath_distance.c) 30target_sources(CMSISDSPDistance PRIVATE arm_yule_distance.c) 31 32 33configLib(CMSISDSPDistance ${ROOT}) 34configDsp(CMSISDSPDistance ${ROOT}) 35 36### Includes 37target_include_directories(CMSISDSPDistance PUBLIC "${DSP}/Include") 38target_include_directories(CMSISDSPDistance PRIVATE ".") 39 40if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16)) 41target_sources(CMSISDSPDistance PRIVATE arm_braycurtis_distance_f16.c) 42target_sources(CMSISDSPDistance PRIVATE arm_canberra_distance_f16.c) 43target_sources(CMSISDSPDistance PRIVATE arm_chebyshev_distance_f16.c) 44target_sources(CMSISDSPDistance PRIVATE arm_cityblock_distance_f16.c) 45target_sources(CMSISDSPDistance PRIVATE arm_correlation_distance_f16.c) 46target_sources(CMSISDSPDistance PRIVATE arm_cosine_distance_f16.c) 47target_sources(CMSISDSPDistance PRIVATE arm_euclidean_distance_f16.c) 48target_sources(CMSISDSPDistance PRIVATE arm_jensenshannon_distance_f16.c) 49target_sources(CMSISDSPDistance PRIVATE arm_minkowski_distance_f16.c) 50endif() 51 52