# Copyright 2022-2024 Advanced Micro Devices, Inc. All Rights Reserved.
# SPDX-License-Identifier: MIT
cmake_minimum_required(VERSION 3.14.7)
project(mipi_tx_phy)

find_package(common)
collector_create (PROJECT_LIB_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}")
collector_create (PROJECT_LIB_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}")
include_directories(${CMAKE_BINARY_DIR}/include)
collect (PROJECT_LIB_SOURCES xmipi_tx_phy.c)
collect (PROJECT_LIB_HEADERS xmipi_tx_phy.h)
collect (PROJECT_LIB_SOURCES xmipi_tx_phy_g.c)
collect (PROJECT_LIB_HEADERS xmipi_tx_phy_hw.h)
collect (PROJECT_LIB_SOURCES xmipi_tx_phy_selftest.c)
collect (PROJECT_LIB_SOURCES xmipi_tx_phy_sinit.c)
collector_list (_sources PROJECT_LIB_SOURCES)
collector_list (_headers PROJECT_LIB_HEADERS)
file(COPY ${_headers} DESTINATION ${CMAKE_BINARY_DIR}/include)
add_library(mipi_tx_phy STATIC ${_sources})
set_target_properties(mipi_tx_phy PROPERTIES LINKER_LANGUAGE C)
