# 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.
cmake_minimum_required(VERSION 4.1 FATAL_ERROR)
project(adtf_python_package VERSION 0.1.0)
find_package(Python COMPONENTS Development.Module Development.Embed Interpreter)
find_package(pybind11 REQUIRED)

if (DEFINED SKBUILD_PROJECT_VERSION_FULL)
    set(BUILD_VERSION ${SKBUILD_PROJECT_VERSION_FULL})
else ()
    set(BUILD_VERSION local)
endif ()

add_subdirectory(src)

configure_file(adtf_python_package.adtfenvironment ${CMAKE_CURRENT_BINARY_DIR}/adtf_python_package.adtfenvironment)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/adtf_python_package.adtfenvironment DESTINATION .)