File tree Expand file tree Collapse file tree 4 files changed +3
-9313
lines changed Expand file tree Collapse file tree 4 files changed +3
-9313
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ file(GLOB_RECURSE VINEYARD_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}"
99
1010find_package (MPI REQUIRED)
1111find_package (libgrapelite REQUIRED)
12+
1213find_package (Protobuf REQUIRED)
1314include_directories (${Protobuf_INCLUDE_DIRS} )
1415include_directories (${CMAKE_CURRENT_BINARY_DIR} )
16+ protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS ${CMAKE_CURRENT_SOURCE_DIR} /grin/include /proto/graph.proto)
1517
1618
1719if (VINEYARD_MOD_SRCS)
@@ -179,7 +181,7 @@ endif()
179181
180182# grin lib
181183file (GLOB_RECURSE GRIN_SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR} " "grin/*.cc" )
182- add_library (vineyard_grin ${GRIN_SRC_FILES} )
184+ add_library (vineyard_grin ${GRIN_SRC_FILES} ${PROTO_SRCS} ${PROTO_HDRS} )
183185target_link_libraries (vineyard_grin PRIVATE vineyard_graph ${Protobuf_LIBRARIES} )
184186install_vineyard_target(vineyard_grin)
185187
You can’t perform that action at this time.
0 commit comments