CMakeLists.txt 1020 B

12345678910111213141516171819202122232425262728293031323334353637
  1. cmake_minimum_required (VERSION 3.6)
  2. project(CMSISDSPController)
  3. add_library(CMSISDSPController STATIC)
  4. configdsp(CMSISDSPController ..)
  5. include(interpol)
  6. interpol(CMSISDSPController)
  7. if (CONFIGTABLE AND ALLFAST)
  8. target_compile_definitions(CMSISDSPController PUBLIC ARM_ALL_FAST_TABLES)
  9. endif()
  10. target_sources(CMSISDSPController PRIVATE arm_pid_init_f32.c)
  11. target_sources(CMSISDSPController PRIVATE arm_pid_init_q15.c)
  12. target_sources(CMSISDSPController PRIVATE arm_pid_init_q31.c)
  13. target_sources(CMSISDSPController PRIVATE arm_pid_reset_f32.c)
  14. target_sources(CMSISDSPController PRIVATE arm_pid_reset_q15.c)
  15. target_sources(CMSISDSPController PRIVATE arm_pid_reset_q31.c)
  16. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_COS_F32)
  17. target_sources(CMSISDSPController PRIVATE arm_sin_cos_f32.c)
  18. endif()
  19. if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_COS_Q31)
  20. target_sources(CMSISDSPController PRIVATE arm_sin_cos_q31.c)
  21. endif()
  22. ### Includes
  23. target_include_directories(CMSISDSPController PUBLIC "${DSP}/../../Include")