# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NvidiaProprietary
#
# NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
# property and proprietary rights in and to this material, related
# documentation and any modifications thereto. Any use, reproduction,
# disclosure or distribution of this material and related documentation
# without an express license agreement from NVIDIA CORPORATION or
# its affiliates is strictly prohibited.

add_library(sample_gmsl_module_driver SHARED
    SampleDeserDriver.cpp
    SampleEepromUbb.cpp
    SampleModuleDriver.cpp
    SampleSensorUbb.cpp
    SampleSerializerUbb.cpp
)
add_library(uddf::samples::sample_gmsl_module_driver ALIAS sample_gmsl_module_driver)

target_compile_features(sample_gmsl_module_driver PUBLIC cxx_std_17)

# --- Include Directories ---
target_include_directories(sample_gmsl_module_driver
    PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}
        ${UDDF_CDD_COMMON}
        ${UDDF_CDD_DRIVER}
)

target_link_libraries(sample_gmsl_module_driver PUBLIC uddf::uddf)

hsl_add_driver_sources(sample_gmsl_module_driver
  SOURCES SampleSensorSequences.py SampleSerializerSequences.py SampleDeserializerSequences.py
  DEPENDENCIES SampleSensorRegisters.py
  CONFIG_PARAMS HSL_EXAMPLE_DEFINE=1234
  NAMESPACE uddf::samples::gmsl::hsl
)
