blob: ab35b353d1718bd52807d1f5883d571917c5cce0 [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)
8
9enable_language(CXX C ASM)
10
11
12# Otherwise there is a .obj on windows and it creates problems
13# with armlink.
14SET(CMAKE_C_OUTPUT_EXTENSION .o)
15SET(CMAKE_CXX_OUTPUT_EXTENSION .o)
16SET(CMAKE_ASM_OUTPUT_EXTENSION .o)
17
18include(configCore)
19
20
21function(configLib project cmsisRoot)
22 configcore(${project} ${cmsisRoot})
23 #configplatformForLib(${project} ${cmsisRoot})
24 SET(COREID ${COREID} PARENT_SCOPE)
25endfunction()
26