1# 2# Arm SCP/MCP Software 3# Copyright (c) 2022, Arm 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 13target_sources(${SCP_MODULE_TARGET} 14 PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/mod_transport.c") 15 16if("scmi" IN_LIST SCP_MODULES) 17 target_link_libraries(${SCP_MODULE_TARGET} PRIVATE module-scmi) 18endif() 19 20if("power-domain" IN_LIST SCP_MODULES) 21 target_link_libraries(${SCP_MODULE_TARGET} PRIVATE module-power-domain) 22endif() 23