From 5616537c3a0b1e9f1daacaaa91bae1bc7e20051d Mon Sep 17 00:00:00 2001 From: Hugues Kamba Date: Tue, 29 Dec 2020 12:24:24 +0000 Subject: [PATCH 1/2] CMake: Add MbedTLS dependency to LoRaWAN library This way applications that need LoRaWAN do need to also add MbedTLS --- connectivity/lorawan/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/connectivity/lorawan/CMakeLists.txt b/connectivity/lorawan/CMakeLists.txt index 35bd5282a8..743a0ff9ae 100644 --- a/connectivity/lorawan/CMakeLists.txt +++ b/connectivity/lorawan/CMakeLists.txt @@ -26,4 +26,5 @@ target_compile_definitions(mbed-lorawan target_link_libraries(mbed-lorawan INTERFACE mbed-events + mbed-mbedtls ) From 9985392c09f56f91839491d3c8e16f248e748f27 Mon Sep 17 00:00:00 2001 From: Hugues Kamba Date: Tue, 29 Dec 2020 12:33:44 +0000 Subject: [PATCH 2/2] CMake: Add support for LoRaWAN Greentea test The LoRaWAN Greentea test can now be built with CMake. --- .../tests/TESTS/lorawan/loraradio/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 connectivity/lorawan/tests/TESTS/lorawan/loraradio/CMakeLists.txt diff --git a/connectivity/lorawan/tests/TESTS/lorawan/loraradio/CMakeLists.txt b/connectivity/lorawan/tests/TESTS/lorawan/loraradio/CMakeLists.txt new file mode 100644 index 0000000000..599c6c5e06 --- /dev/null +++ b/connectivity/lorawan/tests/TESTS/lorawan/loraradio/CMakeLists.txt @@ -0,0 +1,16 @@ +# Copyright (c) 2020 ARM Limited. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR) + +set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.. CACHE INTERNAL "") +set(TEST_TARGET mbed-connectivity-lorawan-loraradio) + +include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake) + +project(${TEST_TARGET}) + +mbed_greentea_cmake_macro( + TEST_NAME ${TEST_TARGET} + TEST_REQUIRED_LIBS mbed-lorawan +)