Skip to content

Commit 8c58048

Browse files
committed
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.
1 parent fee7906 commit 8c58048

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

UNITTESTS/stubs/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ target_include_directories(mbed-headers-connectivity
6767
${mbed-os_SOURCE_DIR}/connectivity/libraries/nanostack-libservice/mbed-client-libservice
6868
${mbed-os_SOURCE_DIR}/connectivity/netsocket/include
6969
${mbed-os_SOURCE_DIR}/connectivity
70-
${mbed-os_SOURCE_DIR}/connectivity/lorawan/include/lorawan
71-
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack
72-
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/mac
73-
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/phy
74-
${mbed-os_SOURCE_DIR}/connectivity/lorawan
75-
${mbed-os_SOURCE_DIR}/connectivity/lorawan/system
7670
${mbed-os_SOURCE_DIR}/connectivity/mbedtls
7771
${mbed-os_SOURCE_DIR}/connectivity/mbedtls/include
7872
${mbed-os_SOURCE_DIR}/connectivity/FEATURE_BLE/include

connectivity/lorawan/tests/UNITTESTS/doubles/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Copyright (c) 2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
add_library(mbed-headers-lorawan INTERFACE)
5+
6+
target_include_directories(mbed-headers-lorawan
7+
INTERFACE
8+
${mbed-os_SOURCE_DIR}/connectivity/lorawan/include/lorawan
9+
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack
10+
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/mac
11+
${mbed-os_SOURCE_DIR}/connectivity/lorawan/lorastack/phy
12+
${mbed-os_SOURCE_DIR}/connectivity/lorawan
13+
${mbed-os_SOURCE_DIR}/connectivity/lorawan/system
14+
)
15+
416
add_library(mbed-stubs-lorawan)
517

618
target_compile_definitions(mbed-stubs-lorawan
@@ -23,6 +35,7 @@ target_sources(mbed-stubs-lorawan
2335
target_link_libraries(mbed-stubs-lorawan
2436
PRIVATE
2537
mbed-headers
38+
mbed-headers-lorawan
2639
mbed-stubs-headers
2740
gtest
2841
)

0 commit comments

Comments
 (0)