Christophe Favergeon | d3551bf | 2019-09-26 08:48:51 +0100 | [diff] [blame^] | 1 | include(CMakePrintHelpers) |
| 2 | |
Christophe Favergeon | 26c2f68 | 2019-09-06 14:43:32 +0100 | [diff] [blame] | 3 | if(EXPERIMENTAL) |
| 4 | list(APPEND CMAKE_MODULE_PATH ${EXPROOT}) |
| 5 | include(experimental) |
| 6 | endif() |
| 7 | |
Christophe Favergeon | aa3cdc5 | 2019-09-25 11:31:39 +0200 | [diff] [blame] | 8 | |
| 9 | include(configLib) |
Christophe Favergeon | ec57420 | 2019-08-09 06:54:05 +0100 | [diff] [blame] | 10 | SET(PLATFORMFOLDER ${ROOT}/CMSIS/DSP/Platforms/FVP) |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame] | 11 | include(configPlatform) |
| 12 | include(configBoot) |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 13 | |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame] | 14 | define_property(TARGET |
| 15 | PROPERTY DISABLEOPTIMIZATION |
| 16 | BRIEF_DOCS "Force disabling of optimizations" |
| 17 | FULL_DOCS "Force disabling of optimizations") |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 18 | |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame] | 19 | # Config core settings |
| 20 | # Configure platform (semihosting etc ...) |
| 21 | # May be required for some compiler |
| 22 | function(disableOptimization project) |
| 23 | set_target_properties(${project} PROPERTIES DISABLEOPTIMIZATION ON) |
| 24 | endfunction() |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 25 | |
Christophe Favergeon | 6b604eb | 2019-05-17 13:46:33 +0200 | [diff] [blame] | 26 | |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame] | 27 | # Config app |
| 28 | function (configApp project cmsisRoot) |
| 29 | configcore(${project} ${cmsisRoot}) |
Christophe Favergeon | ec57420 | 2019-08-09 06:54:05 +0100 | [diff] [blame] | 30 | configboot(${project} ${cmsisRoot} ${PLATFORMFOLDER}) |
Christophe Favergeon | 3b2a0ee | 2019-06-12 13:29:14 +0200 | [diff] [blame] | 31 | set_platform_core() |
| 32 | core_includes(${project}) |
| 33 | SET(PLATFORMID ${PLATFORMID} PARENT_SCOPE) |
| 34 | SET(COREID ${COREID} PARENT_SCOPE) |
Christophe Favergeon | e018132 | 2019-05-20 13:25:14 +0200 | [diff] [blame] | 35 | endfunction() |