1#-------------------------------------------------------------------------------
2# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8cmake_minimum_required(VERSION 3.13)
9
10add_library(tfm_test_framework_common INTERFACE)
11
12target_sources(tfm_test_framework_common
13    INTERFACE
14        ${CMAKE_CURRENT_SOURCE_DIR}/framework/test_framework.c
15        ${CMAKE_CURRENT_SOURCE_DIR}/framework/test_framework_helpers.c
16        ${CMAKE_CURRENT_SOURCE_DIR}/framework/test_framework_integ_test_helper.c
17)
18
19target_include_directories(tfm_test_framework_common
20    INTERFACE
21        framework
22)
23
24target_link_libraries(tfm_test_framework_common
25    INTERFACE
26        tfm_log_interface
27)
28
29if(TEST_FRAMEWORK_S OR TEST_FRAMEWORK_NS)
30    add_subdirectory(secure_fw)
31endif()
32
33if(TEST_BL2)
34    add_subdirectory(bl2)
35endif()
36
37if(TEST_BL1_1 OR TEST_BL1_2)
38    add_subdirectory(bl1)
39endif()
40