1# 2# Arm SCP/MCP Software 3# Copyright (c) 2022, Linaro Limited and Contributors. All rights reserved. 4# 5# SPDX-License-Identifier: BSD-3-Clause 6# 7 8add_library(${SCP_MODULE_TARGET} SCP_MODULE) 9 10target_include_directories(${SCP_MODULE_TARGET} 11 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include") 12 13# These include directories are relative to SCP-firmware submodule position in 14# optee-os tree 15# Those includes are needed for mutex defifitnion that is used in optee_smt 16# notification 17target_include_directories(${SCP_MODULE_TARGET} 18 PUBLIC "${SCP_OPTEE_DIR}/core/include/" 19 "${SCP_OPTEE_DIR}/lib/libutils/ext/include/" 20 "${SCP_OPTEE_DIR}/lib/libutee/include/") 21 22target_link_libraries(${SCP_MODULE_TARGET} 23 PRIVATE module-optee-smt 24 module-msg-smt 25 module-scmi) 26 27target_sources(${SCP_MODULE_TARGET} 28 PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/mod_optee_mbx.c") 29