Skip to content

Commit 3531be8

Browse files
committed
CMake: Add support for CORDIO Greentea tests
The Cordio Greentea tests can now be built with CMake.
1 parent 994662a commit 3531be8

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
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-ble-cordio-hci-driver)
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-ble mbed-events
16+
)
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-ble-cordio-hci-transport)
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-ble
16+
)

0 commit comments

Comments
 (0)