blob: cc67a2bb243b262a705ec099af972b37c0245221 [file] [log] [blame]
Kevin Peng62a87112020-07-07 15:07:46 +08001#-------------------------------------------------------------------------------
Raef Colesb8f0c312021-05-26 14:17:37 +01002# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Kevin Peng62a87112020-07-07 15:07:46 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
Raef Coles652bb8a2020-09-24 11:27:38 +01008cmake_minimum_required(VERSION 3.13)
Kevin Peng62a87112020-07-07 15:07:46 +08009
David Hu73f259b2020-12-07 10:58:41 +080010add_library(tfm_test_framework_common INTERFACE)
11
12target_sources(tfm_test_framework_common
Raef Coles652bb8a2020-09-24 11:27:38 +010013 INTERFACE
David Hucf299b12021-09-12 16:41:48 +080014 ${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
Raef Coles652bb8a2020-09-24 11:27:38 +010017)
Kevin Peng62a87112020-07-07 15:07:46 +080018
David Hu73f259b2020-12-07 10:58:41 +080019target_include_directories(tfm_test_framework_common
Raef Coles652bb8a2020-09-24 11:27:38 +010020 INTERFACE
21 framework
22)
Kevin Peng62a87112020-07-07 15:07:46 +080023
Raef Coles4817eb82022-01-18 12:33:24 +000024target_link_libraries(tfm_test_framework_common
25 INTERFACE
26 tfm_log_interface
27)
28
Raef Colesc7d80682021-05-26 14:20:31 +010029if(TEST_FRAMEWORK_S OR TEST_FRAMEWORK_NS)
30 add_subdirectory(secure_fw)
31endif()
Raef Coles54940f02022-01-07 12:38:49 +000032
33if(TEST_BL2)
34 add_subdirectory(bl2)
35endif()
Raef Colesdf3f6ce2021-05-26 14:21:07 +010036
37if(TEST_BL1_1 OR TEST_BL1_2)
38 add_subdirectory(bl1)
39endif()