configLib.cmake 790 B

12345678910111213141516171819202122232425262728293031
  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. if(EXPERIMENTAL)
  5. list(APPEND CMAKE_MODULE_PATH ${EXPROOT})
  6. include(experimental)
  7. endif()
  8. include(Toolchain/Tools)
  9. option(OPTIMIZED "Compile for speed" OFF)
  10. option(AUTOVECTORIZE "Prefer autovectorizable code to one using C intrinsics" OFF)
  11. enable_language(CXX C ASM)
  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. include(configCore)
  18. function(configLib project cmsisRoot)
  19. configcore(${project} ${cmsisRoot})
  20. #configplatformForLib(${project} ${cmsisRoot})
  21. SET(COREID ${COREID} PARENT_SCOPE)
  22. endfunction()