Skip to content

Commit 20f6b52

Browse files
committed
Add external greentea-client dependency
Use FetchContent to obtain greentea-client at version XXX.
1 parent 0940ffe commit 20f6b52

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ list(APPEND CMAKE_MODULE_PATH
1717
"${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"
1818
)
1919

20+
add_subdirectory(extern)
21+
2022
option(BUILD_TESTING "Run unit tests only." OFF)
2123

2224
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)

extern/CMakeLists.txt

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2021 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
include(FetchContent)
5+
6+
FetchContent_Declare(
7+
greentea-client
8+
GIT_REPOSITORY https://github.com/ARMmbed/greentea-client.git
9+
GIT_TAG 472aad2327fbfde827852fc44775904706847a3a
10+
)
11+
12+
FetchContent_MakeAvailable(greentea-client)

0 commit comments

Comments
 (0)