blob: ccdf5cbacf889a725afcd2b6659da15e323d2fca [file] [log] [blame]
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +02001function(configDsp project root)
2
3if (CONFIGTABLE)
4 # Public because initialization for FFT may be defined in client code
5 # and needs access to the table.
6 target_compile_definitions(${project} PUBLIC ARM_DSP_CONFIG_TABLES)
7endif()
8
9if (LOOPUNROLL)
10 target_compile_definitions(${project} PRIVATE ARM_MATH_LOOPUNROLL)
11endif()
12
13if (ROUNDING)
14 target_compile_definitions(${project} PRIVATE ARM_MATH_ROUNDING)
15endif()
16
17if (MATRIXCHECK)
18 target_compile_definitions(${project} PRIVATE ARM_MATH_MATRIX_CHECK)
19endif()
20
Christophe Favergeon37b86222019-07-17 11:49:00 +020021if (NEON OR NEONEXPERIMENTAL)
22 target_include_directories(${project} PRIVATE "${root}/CMSIS/DSP/ComputeLibrary/Include")
23endif()
24
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020025endfunction()