blob: 693bf9067f67906b82cf10fd3bd6e27ece93207f [file] [log] [blame]
Christophe Favergeond3551bf2019-09-26 08:48:51 +01001include(CMakePrintHelpers)
2
Christophe Favergeon26c2f682019-09-06 14:43:32 +01003if(EXPERIMENTAL)
4list(APPEND CMAKE_MODULE_PATH ${EXPROOT})
5include(experimental)
6endif()
7
Christophe Favergeonaa3cdc52019-09-25 11:31:39 +02008
9include(configLib)
Christophe Favergeonec574202019-08-09 06:54:05 +010010SET(PLATFORMFOLDER ${ROOT}/CMSIS/DSP/Platforms/FVP)
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020011include(configPlatform)
12include(configBoot)
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020013
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020014define_property(TARGET
15 PROPERTY DISABLEOPTIMIZATION
16 BRIEF_DOCS "Force disabling of optimizations"
17 FULL_DOCS "Force disabling of optimizations")
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020018
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020019# Config core settings
20# Configure platform (semihosting etc ...)
21# May be required for some compiler
22function(disableOptimization project)
23 set_target_properties(${project} PROPERTIES DISABLEOPTIMIZATION ON)
24endfunction()
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020025
Christophe Favergeon6b604eb2019-05-17 13:46:33 +020026
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020027# Config app
28function (configApp project cmsisRoot)
29 configcore(${project} ${cmsisRoot})
Christophe Favergeonec574202019-08-09 06:54:05 +010030 configboot(${project} ${cmsisRoot} ${PLATFORMFOLDER})
Christophe Favergeon3b2a0ee2019-06-12 13:29:14 +020031 set_platform_core()
32 core_includes(${project})
33 SET(PLATFORMID ${PLATFORMID} PARENT_SCOPE)
34 SET(COREID ${COREID} PARENT_SCOPE)
Christophe Favergeone0181322019-05-20 13:25:14 +020035endfunction()