Merge pull request #14098 from hugueskamba/hk_cmake_greentea_lorawan

CMake: Add support for LoRaWAN Greentea tests
pull/14159/head
Martin Kojtal 2021-01-20 08:34:50 +00:00 committed by GitHub
commit 8145477cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -26,4 +26,5 @@ target_compile_definitions(mbed-lorawan
target_link_libraries(mbed-lorawan
INTERFACE
mbed-events
mbed-mbedtls
)

View File

@ -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
)