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