1cmake_minimum_required (VERSION 3.14)
2
3project(CMSISDSPController)
4
5include(configLib)
6include(configDsp)
7
8add_library(CMSISDSPController STATIC)
9
10configLib(CMSISDSPController ${ROOT})
11configDsp(CMSISDSPController ${ROOT})
12
13include(interpol)
14interpol(CMSISDSPController)
15
16if (CONFIGTABLE AND ALLFAST)
17    target_compile_definitions(CMSISDSPController PUBLIC ARM_ALL_FAST_TABLES)
18endif()
19
20target_sources(CMSISDSPController PRIVATE arm_pid_init_f32.c)
21target_sources(CMSISDSPController PRIVATE arm_pid_init_q15.c)
22target_sources(CMSISDSPController PRIVATE arm_pid_init_q31.c)
23target_sources(CMSISDSPController PRIVATE arm_pid_reset_f32.c)
24target_sources(CMSISDSPController PRIVATE arm_pid_reset_q15.c)
25target_sources(CMSISDSPController PRIVATE arm_pid_reset_q31.c)
26
27if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_COS_F32)
28target_sources(CMSISDSPController PRIVATE arm_sin_cos_f32.c)
29endif()
30
31if (NOT CONFIGTABLE OR ALLFAST OR ARM_SIN_COS_Q31)
32target_sources(CMSISDSPController PRIVATE arm_sin_cos_q31.c)
33endif()
34
35
36
37### Includes
38target_include_directories(CMSISDSPController PUBLIC "${DSP}/Include")
39
40
41
42