Add external greentea-client dependency

Use FetchContent to obtain greentea-client at version XXX.
pull/14803/head
Jaeden Amero 2021-05-19 16:50:09 +01:00
parent 0940ffe37d
commit 20f6b5270f
2 changed files with 14 additions and 0 deletions

View File

@ -17,6 +17,8 @@ list(APPEND CMAKE_MODULE_PATH
"${mbed-os_SOURCE_DIR}/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/scripts;${mbed-os_SOURCE_DIR}/targets/TARGET_Cypress/scripts;${mbed-os_SOURCE_DIR}/targets/TARGET_NXP/scripts"
)
add_subdirectory(extern)
option(BUILD_TESTING "Run unit tests only." OFF)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)

12
extern/CMakeLists.txt vendored Normal file
View File

@ -0,0 +1,12 @@
# Copyright (c) 2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
include(FetchContent)
FetchContent_Declare(
greentea-client
GIT_REPOSITORY https://github.com/ARMmbed/greentea-client.git
GIT_TAG 472aad2327fbfde827852fc44775904706847a3a
)
FetchContent_MakeAvailable(greentea-client)