1cmake_minimum_required (VERSION 3.14)
2
3project(CMSISDSPBasicMath)
4
5include(configLib)
6include(configDsp)
7
8file(GLOB SRCF64 "./*_f64.c")
9file(GLOB SRCF32 "./*_f32.c")
10file(GLOB SRCF16 "./*_f16.c")
11file(GLOB SRCQ31 "./*_q31.c")
12file(GLOB SRCQ15 "./*_q15.c")
13file(GLOB SRCQ7  "./*_q7.c")
14
15file(GLOB SRCU32 "./*_u32.c")
16file(GLOB SRCU16 "./*_u16.c")
17file(GLOB SRCU8  "./*_u8.c")
18
19add_library(CMSISDSPBasicMath STATIC ${SRCF64})
20target_sources(CMSISDSPBasicMath PRIVATE ${SRCF32})
21
22if ((NOT ARMAC5) AND (NOT DISABLEFLOAT16))
23target_sources(CMSISDSPBasicMath PRIVATE ${SRCF16})
24endif()
25
26target_sources(CMSISDSPBasicMath PRIVATE ${SRCQ31})
27target_sources(CMSISDSPBasicMath PRIVATE ${SRCQ15})
28target_sources(CMSISDSPBasicMath PRIVATE ${SRCQ7})
29
30target_sources(CMSISDSPBasicMath PRIVATE ${SRCU32})
31target_sources(CMSISDSPBasicMath PRIVATE ${SRCU16})
32target_sources(CMSISDSPBasicMath PRIVATE ${SRCU8})
33
34configLib(CMSISDSPBasicMath ${ROOT})
35configDsp(CMSISDSPBasicMath ${ROOT})
36
37### Includes
38target_include_directories(CMSISDSPBasicMath PUBLIC "${DSP}/Include")
39
40
41
42