CMake: Create mbed-greentea library

pull/14061/head
Rajkumar Kanagaraj 2020-11-11 15:22:45 +00:00
parent d6784c3ee6
commit d634236eae
4 changed files with 53 additions and 0 deletions

View File

@ -4,6 +4,10 @@
# List of all features libraries available.
add_library(mbed-fpga-ci-test-shield INTERFACE)
add_library(mbed-client-cli INTERFACE)
add_library(mbed-greentea INTERFACE)
add_subdirectory(frameworks/COMPONENT_FPGA_CI_TEST_SHIELD)
add_subdirectory(frameworks/mbed-client-cli)
add_subdirectory(frameworks/greentea-client)
add_subdirectory(frameworks/unity)
add_subdirectory(frameworks/utest)

View File

@ -0,0 +1,14 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-greentea
INTERFACE
.
greentea-client
)
target_sources(mbed-greentea
INTERFACE
source/greentea_metrics.cpp
source/greentea_test_env.cpp
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-greentea
INTERFACE
.
unity
)
target_sources(mbed-greentea
INTERFACE
source/unity.c
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-greentea
INTERFACE
.
utest
)
target_sources(mbed-greentea
INTERFACE
mbed-utest-shim.cpp
source/unity_handler.cpp
source/utest_case.cpp
source/utest_default_handlers.cpp
source/utest_greentea_handlers.cpp
source/utest_harness.cpp
source/utest_print.cpp
source/utest_shim.cpp
source/utest_stack_trace.cpp
source/utest_types.cpp
)