CMake: use project name for Mbed OS

This enables multiple variables we can use. One of them is source dir for a project.

It will replace MBED_PATH in the tree.
pull/14516/head
Martin Kojtal 2021-04-08 12:59:53 +01:00
parent 9bbc8c914c
commit 1413c42410
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
include(${MBED_CONFIG_PATH}/mbed_config.cmake)
include(tools/cmake/set_linker_script.cmake)
project(mbed-os)
add_library(mbed-core INTERFACE)
add_library(mbed-os INTERFACE)