blob: 4129d7e3549f7b3a3fe5f8f2840a20a5a07c35f2 [file] [log] [blame]
# This is for building a library only
# It is similar to the config.cmake but ignoring anything related to the platform
# and boot code
if(EXPERIMENTAL)
list(APPEND CMAKE_MODULE_PATH ${EXPROOT})
include(experimental)
endif()
include(Toolchain/Tools)
option(OPTIMIZED "Compile for speed" OFF)
option(AUTOVECTORIZE "Prefer autovectorizable code to one using C intrinsics" OFF)
enable_language(CXX C ASM)
# Otherwise there is a .obj on windows and it creates problems
# with armlink.
SET(CMAKE_C_OUTPUT_EXTENSION .o)
SET(CMAKE_CXX_OUTPUT_EXTENSION .o)
SET(CMAKE_ASM_OUTPUT_EXTENSION .o)
include(configCore)
function(configLib project cmsisRoot)
configcore(${project} ${cmsisRoot})
#configplatformForLib(${project} ${cmsisRoot})
SET(COREID ${COREID} PARENT_SCOPE)
endfunction()