# Copyright 2025 Digitalwerk GmbH.
#
#     This Source Code Form is subject to the terms of the Mozilla
#     Public License, v. 2.0. If a copy of the MPL was not distributed
#     with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
#
# If it is not possible or desirable to put the notice in a particular file, then
# You may include the notice in a location (such as a LICENSE file in a
# relevant directory) where a recipient would be likely to look for such a notice.
#
# You may add additional accurate notices of copyright ownership.

find_package(adtf_sdk 3.21 REQUIRED COMPONENTS dev_essential streaming3 mediadescription)

add_library(decoder STATIC
        decoder.h
        decoder.cpp
)

target_link_libraries(decoder PUBLIC pybind11::module PRIVATE dev_essential::ddl adtf::streaming3 adtf::mediadescription)
set_target_properties(decoder PROPERTIES POSITION_INDEPENDENT_CODE True)
target_include_directories(decoder PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
target_compile_features(decoder PUBLIC cxx_std_17)
target_compile_definitions(decoder PUBLIC MODULE_RELEASE_ABI_VERSION=${MODULE_RELEASE_ABI_VERSION})
