Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame] | 1 | function(configDsp project root) |
| 2 | |
| 3 | if (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) |
| 7 | endif() |
| 8 | |
| 9 | if (LOOPUNROLL) |
| 10 | target_compile_definitions(${project} PRIVATE ARM_MATH_LOOPUNROLL) |
| 11 | endif() |
| 12 | |
| 13 | if (ROUNDING) |
| 14 | target_compile_definitions(${project} PRIVATE ARM_MATH_ROUNDING) |
| 15 | endif() |
| 16 | |
| 17 | if (MATRIXCHECK) |
| 18 | target_compile_definitions(${project} PRIVATE ARM_MATH_MATRIX_CHECK) |
| 19 | endif() |
| 20 | |
Christophe Favergeon | f5bafd1 | 2019-09-26 15:11:29 +0200 | [diff] [blame] | 21 | if (AUTOVECTORIZE) |
| 22 | target_compile_definitions(${project} PRIVATE ARM_MATH_AUTOVECTORIZE) |
| 23 | endif() |
| 24 | |
Christophe Favergeon | 37b8622 | 2019-07-17 11:49:00 +0200 | [diff] [blame] | 25 | if (NEON OR NEONEXPERIMENTAL) |
| 26 | target_include_directories(${project} PRIVATE "${root}/CMSIS/DSP/ComputeLibrary/Include") |
| 27 | endif() |
| 28 | |
Christophe Favergeon | c46f152 | 2020-04-21 14:04:25 +0200 | [diff] [blame^] | 29 | if (MVEFLOAT16) |
| 30 | target_compile_definitions(${project} PRIVATE ARM_MATH_MVE_FLOAT16) |
Christophe Favergeon | c159342 | 2019-10-21 13:50:41 +0200 | [diff] [blame] | 31 | endif() |
| 32 | |
ClaudioMartino | d861360 | 2019-11-25 13:35:22 +0100 | [diff] [blame] | 33 | if (HELIUM OR MVEF OR SUPPORT) |
Christophe Favergeon | 4a315c3 | 2019-10-29 13:15:47 +0000 | [diff] [blame] | 34 | target_include_directories(${project} PRIVATE "${root}/CMSIS/DSP/PrivateInclude") |
| 35 | endif() |
Christophe Favergeon | f5bafd1 | 2019-09-26 15:11:29 +0200 | [diff] [blame] | 36 | |
ClaudioMartino | d861360 | 2019-11-25 13:35:22 +0100 | [diff] [blame] | 37 | endfunction() |