Skip to content

Commit 8145477

Browse files
authored
Merge pull request #14098 from hugueskamba/hk_cmake_greentea_lorawan
CMake: Add support for LoRaWAN Greentea tests
2 parents 6969140 + 9985392 commit 8145477

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

connectivity/lorawan/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ target_compile_definitions(mbed-lorawan
2626
target_link_libraries(mbed-lorawan
2727
INTERFACE
2828
mbed-events
29+
mbed-mbedtls
2930
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR)
5+
6+
set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../.. CACHE INTERNAL "")
7+
set(TEST_TARGET mbed-connectivity-lorawan-loraradio)
8+
9+
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
10+
11+
project(${TEST_TARGET})
12+
13+
mbed_greentea_cmake_macro(
14+
TEST_NAME ${TEST_TARGET}
15+
TEST_REQUIRED_LIBS mbed-lorawan
16+
)

0 commit comments

Comments
 (0)