mirror of https://github.com/ARMmbed/mbed-os.git
35 lines
899 B
CMake
35 lines
899 B
CMake
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# This is not the application cmake, only boilerplate for Mbed OS
|
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
# Using relative paths behavior
|
|
if(POLICY CMP0076)
|
|
cmake_policy(SET CMP0076 NEW)
|
|
endif()
|
|
|
|
# Create Mbed OS library
|
|
add_library(mbed-os OBJECT)
|
|
|
|
# Include mbed.h and config from generate folder
|
|
target_include_directories(mbed-os PUBLIC .)
|
|
|
|
# Link config from generate folder
|
|
# TODO: @mbed-os-tools We need to get this gen_config somehow set up
|
|
target_link_libraries(mbed-os PRIVATE gen_config)
|
|
|
|
# Default build
|
|
add_subdirectory(cmsis)
|
|
add_subdirectory(components)
|
|
add_subdirectory(connectivity)
|
|
add_subdirectory(drivers)
|
|
add_subdirectory(events)
|
|
add_subdirectory(features)
|
|
add_subdirectory(hal)
|
|
add_subdirectory(platform)
|
|
add_subdirectory(rtos)
|
|
add_subdirectory(storage)
|
|
add_subdirectory(targets)
|