File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
mooncake-transfer-engine/src/transport Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1- file (GLOB XPORT_SOURCES "*.cpp" "coro_rpc_connector/*.cpp" )
1+ file (GLOB XPORT_SOURCES "*.cpp" )
22
33# Find Python - pybind11 is already configured at the root level
44find_package (Python3 COMPONENTS Interpreter Development REQUIRED)
55
66add_subdirectory (rdma_transport)
7+ add_subdirectory (coro_rpc_connector)
78
8- add_library (transport OBJECT ${XPORT_SOURCES} $<TARGET_OBJECTS:rdma_transport>)
9+ add_library (transport OBJECT ${XPORT_SOURCES} $<TARGET_OBJECTS:rdma_transport> $<TARGET_OBJECTS:coro_rpc_connector> )
910target_link_libraries (transport PRIVATE JsonCpp::JsonCpp yalantinglibs::yalantinglibs glog::glog pthread ${Python3_LIBRARIES} )
1011target_include_directories (transport PRIVATE ${Python3_INCLUDE_DIRS} )
1112
Original file line number Diff line number Diff line change 1+ file (GLOB CORO_RPC_SOURCES "*.cpp" )
2+
3+ # Find Python for pybind11 support
4+ find_package (Python3 COMPONENTS Interpreter Development REQUIRED)
5+
6+ add_library (coro_rpc_connector OBJECT ${CORO_RPC_SOURCES} )
7+
8+ target_link_libraries (coro_rpc_connector
9+ PRIVATE
10+ JsonCpp::JsonCpp
11+ yalantinglibs::yalantinglibs
12+ glog::glog
13+ pthread
14+ ${Python3_LIBRARIES}
15+ )
16+
17+ target_include_directories (coro_rpc_connector
18+ PRIVATE
19+ ${Python3_INCLUDE_DIRS}
20+ )
21+
22+ # Add pybind11 headers if available
23+ if (TARGET pybind11::headers)
24+ target_link_libraries (coro_rpc_connector PRIVATE pybind11::headers)
25+ endif ()
You can’t perform that action at this time.
0 commit comments