blob: 054177957bcce579879f9273784a002c3b0ed679 [file] [log] [blame]
Christophe Favergeonaa3cdc52019-09-25 11:31:39 +02001# This is for building a library only
2# It is similar to the config.cmake but ignoring anything related to the platform
3# and boot code
Christophe Favergeon02847ce2019-10-14 11:37:59 +01004if(EXPERIMENTAL)
5list(APPEND CMAKE_MODULE_PATH ${EXPROOT})
6include(experimental)
7endif()
Christophe Favergeonaa3cdc52019-09-25 11:31:39 +02008
9
10include(Toolchain/Tools)
11option(OPTIMIZED "Compile for speed" ON)
Christophe Favergeonf5bafd12019-09-26 15:11:29 +020012option(AUTOVECTORIZE "Prefer autovectorizable code to one using C intrinsics" OFF)
Christophe Favergeonaa3cdc52019-09-25 11:31:39 +020013
14enable_language(CXX C ASM)
15
16
17# Otherwise there is a .obj on windows and it creates problems
18# with armlink.
19SET(CMAKE_C_OUTPUT_EXTENSION .o)
20SET(CMAKE_CXX_OUTPUT_EXTENSION .o)
21SET(CMAKE_ASM_OUTPUT_EXTENSION .o)
22
23include(configCore)
24
25
26function(configLib project cmsisRoot)
27 configcore(${project} ${cmsisRoot})
28 #configplatformForLib(${project} ${cmsisRoot})
29 SET(COREID ${COREID} PARENT_SCOPE)
30endfunction()
31