Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
David Hu | b8dd171 | 2021-02-09 15:07:46 +0800 | [diff] [blame] | 2 | # Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 8 | cmake_minimum_required(VERSION 3.13) |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 9 | |
David Hu | 73f259b | 2020-12-07 10:58:41 +0800 | [diff] [blame] | 10 | add_library(tfm_test_framework_common INTERFACE) |
| 11 | |
| 12 | target_sources(tfm_test_framework_common |
Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 13 | INTERFACE |
David Hu | cf299b1 | 2021-09-12 16:41:48 +0800 | [diff] [blame^] | 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 |
Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 17 | ) |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 18 | |
David Hu | 73f259b | 2020-12-07 10:58:41 +0800 | [diff] [blame] | 19 | target_include_directories(tfm_test_framework_common |
Raef Coles | 652bb8a | 2020-09-24 11:27:38 +0100 | [diff] [blame] | 20 | INTERFACE |
| 21 | framework |
| 22 | ) |
Kevin Peng | 62a8711 | 2020-07-07 15:07:46 +0800 | [diff] [blame] | 23 | |
David Hu | cf299b1 | 2021-09-12 16:41:48 +0800 | [diff] [blame^] | 24 | # Build test services and add secure test suite targets |
| 25 | include(secure_tests.cmake) |
David Hu | 1a74bc5 | 2021-08-19 11:17:42 +0800 | [diff] [blame] | 26 | |
David Hu | cf299b1 | 2021-09-12 16:41:48 +0800 | [diff] [blame^] | 27 | # Include test suites at last after other targets are setup. |
| 28 | add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/suites) |