1#
2# Arm SCP/MCP Software
3# Copyright (c) 2021, 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(
14    ${SCP_MODULE_TARGET} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/mod_ppu_v1.c"
15                                 "${CMAKE_CURRENT_SOURCE_DIR}/src/ppu_v1.c")
16
17target_link_libraries(
18    module-ppu-v1
19    PUBLIC module-power-domain
20    PRIVATE module-timer)
21
22if("system-power" IN_LIST SCP_MODULES)
23    target_link_libraries(${SCP_MODULE_TARGET} PRIVATE module-system-power)
24endif()
25