blob: 1b7abc09322b1c2549e95bf4b1d72bc92a8c3786 [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
4
5
6include(Toolchain/Tools)
7option(OPTIMIZED "Compile for speed" ON)
Christophe Favergeonf5bafd12019-09-26 15:11:29 +02008option(AUTOVECTORIZE "Prefer autovectorizable code to one using C intrinsics" OFF)
Christophe Favergeonaa3cdc52019-09-25 11:31:39 +02009
10enable_language(CXX C ASM)
11
12
13# Otherwise there is a .obj on windows and it creates problems
14# with armlink.
15SET(CMAKE_C_OUTPUT_EXTENSION .o)
16SET(CMAKE_CXX_OUTPUT_EXTENSION .o)
17SET(CMAKE_ASM_OUTPUT_EXTENSION .o)
18
19include(configCore)
20
21
22function(configLib project cmsisRoot)
23 configcore(${project} ${cmsisRoot})
24 #configplatformForLib(${project} ${cmsisRoot})
25 SET(COREID ${COREID} PARENT_SCOPE)
26endfunction()
27