新增支持Python混合编程模式 (#4579)

This commit is contained in:
夏楚
2026-02-10 13:28:42 +08:00
committed by GitHub
parent da9deb352c
commit 6d520ea6a3
25 changed files with 1553 additions and 55 deletions

View File

@@ -120,4 +120,14 @@ add_subdirectory(ZLToolKit)
# 添加库别名
add_library(ZLMediaKit::ToolKit ALIAS ZLToolKit)
# 添加依赖
update_cached_list(MK_LINK_LIBRARIES ZLMediaKit::ToolKit)
update_cached_list(MK_LINK_LIBRARIES ZLMediaKit::ToolKit)
##############################################################################
if (ENABLE_PYTHON)
# ============ pybind11 lib ============
add_subdirectory(pybind11)
update_cached_list(MK_LINK_LIBRARIES pybind11::embed)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/pybind11/include)
update_cached_list(MK_COMPILE_DEFINITIONS ENABLE_PYTHON)
endif ()

1
3rdpart/pybind11 Submodule

Submodule 3rdpart/pybind11 added at ed5057ded6