CMake: unit-tests: Add mbed-headers-lorawan headers library

Previously, all lorawan headers made as a part of the
mbed-headers-connectivity library. To make it easier to separate all
the lorawan headers into the separate mbed-headers-lorawan library
and keep them, as part of lorawan stubs CMake. This makes the lorawan
stubs more self-contained and improves the composition of the library.
pull/14842/head
Rajkumar Kanagaraj 2021-06-28 09:06:22 -07:00
parent fee7906b0c
commit 8c580489f6
2 changed files with 13 additions and 6 deletions

View File

@ -67,12 +67,6 @@ target_include_directories(mbed-headers-connectivity
${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/mbed-client-libservice
${mbed-os_SOURCE_DIR}/connectivity/netsocket/include
${mbed-os_SOURCE_DIR}/connectivity
${mbed-os_SOURCE_DIR}/connectivity/lorawan/include/lorawan
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/mac
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/phy
${mbed-os_SOURCE_DIR}/connectivity/lorawan
${mbed-os_SOURCE_DIR}/connectivity/lorawan/system
${mbed-os_SOURCE_DIR}/connectivity/mbedtls
${mbed-os_SOURCE_DIR}/connectivity/mbedtls/include
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include

View File

@ -1,6 +1,18 @@
# Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
add_library(mbed-headers-lorawan INTERFACE)
target_include_directories(mbed-headers-lorawan
INTERFACE
${mbed-os_SOURCE_DIR}/connectivity/lorawan/include/lorawan
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/mac
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/phy
${mbed-os_SOURCE_DIR}/connectivity/lorawan
${mbed-os_SOURCE_DIR}/connectivity/lorawan/system
)
add_library(mbed-stubs-lorawan)
target_compile_definitions(mbed-stubs-lorawan
@ -23,6 +35,7 @@ target_sources(mbed-stubs-lorawan
target_link_libraries(mbed-stubs-lorawan
PRIVATE
mbed-headers
mbed-headers-lorawan
mbed-stubs-headers
gtest
)