mirror of https://github.com/ARMmbed/mbed-os.git
CMake ble: move cordio add_library to own modules
parent
f931c00a2f
commit
d45976a58d
|
@ -2,11 +2,6 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(mbed-ble OBJECT)
|
||||
# cordio libraries are part of ble stack (_ll is optional)
|
||||
# We use INTERFACE libraries to form the main object library otherwise we would
|
||||
# get circular deps error between ble <-> cordio
|
||||
add_library(mbed-ble-cordio INTERFACE)
|
||||
add_library(mbed-ble-cordio-ll INTERFACE)
|
||||
|
||||
add_subdirectory(libraries)
|
||||
add_subdirectory(source)
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# We use INTERFACE library to form the main object library otherwise we would
|
||||
# get circular deps error between ble <-> cordio
|
||||
add_library(mbed-ble-cordio INTERFACE)
|
||||
|
||||
if("CORDIO_LL" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_CORDIO_LL)
|
||||
endif()
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# INTERFACE library due to deps between ble <-> cordio-ll
|
||||
add_library(mbed-ble-cordio-ll INTERFACE)
|
||||
|
||||
target_include_directories(mbed-ble-cordio-ll
|
||||
INTERFACE
|
||||
.
|
||||
|
|
Loading…
Reference in New Issue