You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
948 B
CMake
35 lines
948 B
CMake
include(CMakePrintHelpers)
|
|
|
|
if(EXPERIMENTAL)
|
|
list(APPEND CMAKE_MODULE_PATH ${EXPROOT})
|
|
include(experimental)
|
|
endif()
|
|
|
|
|
|
include(configLib)
|
|
SET(PLATFORMFOLDER ${ROOT}/CMSIS/DSP/Platforms/FVP)
|
|
include(configPlatform)
|
|
include(configBoot)
|
|
|
|
define_property(TARGET
|
|
PROPERTY DISABLEOPTIMIZATION
|
|
BRIEF_DOCS "Force disabling of optimizations"
|
|
FULL_DOCS "Force disabling of optimizations")
|
|
|
|
# Config core settings
|
|
# Configure platform (semihosting etc ...)
|
|
# May be required for some compiler
|
|
function(disableOptimization project)
|
|
set_target_properties(${project} PROPERTIES DISABLEOPTIMIZATION ON)
|
|
endfunction()
|
|
|
|
|
|
# Config app
|
|
function (configApp project cmsisRoot)
|
|
configcore(${project} ${cmsisRoot})
|
|
configboot(${project} ${cmsisRoot} ${PLATFORMFOLDER})
|
|
set_platform_core()
|
|
core_includes(${project})
|
|
SET(PLATFORMID ${PLATFORMID} PARENT_SCOPE)
|
|
SET(COREID ${COREID} PARENT_SCOPE)
|
|
endfunction() |