mirror of https://github.com/ARMmbed/mbed-os.git
Add tools generated definitions and properties
parent
0e1770daf5
commit
335dfddec1
|
@ -14,6 +14,10 @@ include(${MBED_ROOT}/cmake/profile.cmake)
|
|||
include(${MBED_ROOT}/cmake/env.cmake)
|
||||
include(${MBED_ROOT}/cmake/util.cmake)
|
||||
|
||||
set_target_properties(mbed-os PROPERTIES MBED_TARGET_LABELS "${MBED_TARGET_LABELS}")
|
||||
target_compile_definitions(mbed-os PUBLIC ${MBED_TARGET_DEFINITIONS})
|
||||
target_compile_definitions(mbed-os PUBLIC ${MBED_CONFIG_DEFINITIONS})
|
||||
|
||||
# Specify a default build type
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# PREFIX - TARGET or similar (can be empty string)
|
||||
# KEYWORD_LIST - list of labels that are used to include directories
|
||||
function(mbed_add_cmake_directory_if_labels PREFIX)
|
||||
get_property(target_labels GLOBAL PROPERTY MBED_TARGET_LABELS)
|
||||
get_target_property(target_labels mbed-os MBED_TARGET_LABELS)
|
||||
foreach(key ${target_labels})
|
||||
if(NOT "${PREFIX}" STREQUAL "")
|
||||
string(PREPEND key ${PREFIX} "_")
|
||||
|
|
Loading…
Reference in New Issue