blob: 6c5abf45f99c355779c97f735837c7a999b81682 [file] [log] [blame]
Tamas Banc2e0c182020-01-07 15:09:16 +00001#-------------------------------------------------------------------------------
Jamie Fox10f08702024-06-21 14:21:34 +01002# Copyright (c) 2020-2024, Arm Limited. All rights reserved.
Tamas Banc2e0c182020-01-07 15:09:16 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
David Hu1249f0d2023-12-04 22:57:56 +08008cmake_minimum_required(VERSION 3.21)
Tamas Banc2e0c182020-01-07 15:09:16 +00009
Kevin Peng2f4ef242023-09-11 09:35:51 +080010include(${CMAKE_CURRENT_LIST_DIR}/tfm_t_cose.cmake)
Antonio de Angelis34a0ffd2023-02-16 11:56:46 +000011
shejia01d853fe82021-07-12 20:03:55 +080012############################ t_cose secure #####################################
13
14add_library(tfm_t_cose_s STATIC EXCLUDE_FROM_ALL)
15
16target_link_libraries(tfm_t_cose_s
17 PUBLIC
shejia01d853fe82021-07-12 20:03:55 +080018 tfm_t_cose_defs
Jamie Fox10f08702024-06-21 14:21:34 +010019 PRIVATE
20 tfm_t_cose_common
shejia01d853fe82021-07-12 20:03:55 +080021 psa_interface
David Vincze3de42282022-11-10 16:26:45 +010022 qcbor
Antonio de Angelis8bb98512024-01-16 14:13:36 +000023 platform_s
shejia01d853fe82021-07-12 20:03:55 +080024)
25
Feder Liangd4dbaa92021-09-07 15:34:46 +080026target_compile_options(tfm_t_cose_s
Jamie Fox10f08702024-06-21 14:21:34 +010027 PRIVATE
Feder Liangd4dbaa92021-09-07 15:34:46 +080028 ${COMPILER_CP_FLAG}
Raef Coles19715382020-07-10 09:50:17 +010029)