blob: 4129d7e3549f7b3a3fe5f8f2840a20a5a07c35f2 [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)
Christophe Favergeon512b1482020-02-07 11:25:11 +010011option(OPTIMIZED "Compile for speed" OFF)
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)
Christophe Favergeon890f7602020-04-14 09:47:39 +020027 configcore(${project} ${cmsisRoot})
Christophe Favergeonaa3cdc52019-09-25 11:31:39 +020028 #configplatformForLib(${project} ${cmsisRoot})
29 SET(COREID ${COREID} PARENT_SCOPE)
30endfunction()
31