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