mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-12 19:24:22 +08:00
新增支持Python混合编程模式 (#4579)
This commit is contained in:
@@ -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
1
3rdpart/pybind11
Submodule
Submodule 3rdpart/pybind11 added at ed5057ded6
Reference in New Issue
Block a user