CMakeLists.txt 2.6 KB

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