configLib.cmake 559 B

12345678910111213141516171819202122232425
  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. include(Toolchain/Tools)
  5. option(OPTIMIZED "Compile for speed" OFF)
  6. enable_language(CXX C ASM)
  7. # Otherwise there is a .obj on windows and it creates problems
  8. # with armlink.
  9. SET(CMAKE_C_OUTPUT_EXTENSION .o)
  10. SET(CMAKE_CXX_OUTPUT_EXTENSION .o)
  11. SET(CMAKE_ASM_OUTPUT_EXTENSION .o)
  12. include(configCore)
  13. function(configLib PROJECTNAME)
  14. configcore(${PROJECTNAME} NO)
  15. SET(COREID ${COREID} PARENT_SCOPE)
  16. endfunction()