CMake: Refactor mbed_hal/stack_size_unification greentea test CMake

Initially, every library greentea test has its project() creation in
their CMake. As running greentea using CTest move all greentea test
suite under one global project mbed-os and MBED_CONFIG_PATH set at
the root mbed os CMake under the condition BUILD_GREENTEA_TESTS
check so refactored mbed_hal/stack_size_unification greentea CMake accordingly.
pull/15058/head
Rajkumar Kanagaraj 2021-09-07 13:12:43 +01:00
parent 4cfbea43ca
commit 101c8d6582
1 changed files with 3 additions and 10 deletions

View File

@ -1,18 +1,11 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# Copyright (c) 2020-2021 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-hal-stack-size-unification)
include(${MBED_PATH}/tools/cmake/mbed_greentea.cmake)
project(${TEST_TARGET})
include(mbed_greentea)
mbed_greentea_add_test(
TEST_NAME
${TEST_TARGET}
mbed-hal-stack-size-unification
TEST_SOURCES
main.cpp
)