blob: ebe23029a63db1770eacdc19840fb3039f50b73e [file] [log] [blame]
Christophe Favergeon26c2f682019-09-06 14:43:32 +01001if(EXPERIMENTAL)
2list(APPEND CMAKE_MODULE_PATH ${EXPROOT})
3include(experimental)
4endif()
5
Christophe Favergeonaa3cdc52019-09-25 11:31:39 +02006
7include(configLib)
Christophe Favergeonec574202019-08-09 06:54:05 +01008SET(PLATFORMFOLDER ${ROOT}/CMSIS/DSP/Platforms/FVP)
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +02009include(configPlatform)
10include(configBoot)
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020011
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020012define_property(TARGET
13 PROPERTY DISABLEOPTIMIZATION
14 BRIEF_DOCS "Force disabling of optimizations"
15 FULL_DOCS "Force disabling of optimizations")
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020016
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020017# Config core settings
18# Configure platform (semihosting etc ...)
19# May be required for some compiler
20function(disableOptimization project)
21 set_target_properties(${project} PROPERTIES DISABLEOPTIMIZATION ON)
22endfunction()
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020023
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020024
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020025# Config app
26function (configApp project cmsisRoot)
27 configcore(${project} ${cmsisRoot})
Christophe Favergeonec574202019-08-09 06:54:05 +010028 configboot(${project} ${cmsisRoot} ${PLATFORMFOLDER})
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020029 set_platform_core()
30 core_includes(${project})
31 SET(PLATFORMID ${PLATFORMID} PARENT_SCOPE)
32 SET(COREID ${COREID} PARENT_SCOPE)
Christophe Favergeone0181322019-05-20 13:25:14 +020033endfunction()