blob: 543b49c11bfd588d3e5a81cb63697379ed80d5a0 [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 Colesb8f0c312021-05-26 14:17:37 +010024target_link_libraries(tfm_test_framework_common
25 INTERFACE
26 tfm_log_interface
27)
David Hu1a74bc52021-08-19 11:17:42 +080028
Raef Colesc7d80682021-05-26 14:20:31 +010029if(TEST_FRAMEWORK_S OR TEST_FRAMEWORK_NS)
30 add_subdirectory(secure_fw)
31endif()