forked from alibaba/yalantinglibs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
95 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
file(GLOB PROTO_FILES "*.proto") | ||
|
||
|
||
# generate .pb.cc .pb.h | ||
protobuf_generate_cpp(PROTO_SRCS PROTO_HDRS | ||
${PROTO_FILES} | ||
# IMPORT_DIRS ${CMAKE_SOURCE_DIR} | ||
) | ||
|
||
protobuf_generate_python(PROTO_PYTHON_SRCS | ||
${PROTO_FILES} | ||
# IMPORT_DIRS ${CMAKE_SOURCE_DIR} | ||
) | ||
|
||
# 删除点云,图片proto记录文件 | ||
list(FILTER PROTO_FILES EXCLUDE REGEX "pointcloud\\.proto$|image\\.proto$") | ||
# message(status "-------${PROTO_FILES}-------") | ||
|
||
|
||
protobuf_generate_struct_pb(PROTO_STRUCT_SRCS PROTO_STRUCT_HDRS | ||
${PROTO_FILES} | ||
OPTION "namespace=zhito.inner_struct,converter_namespace=zhito.converter" | ||
# PROTOC_OUT_DIR ${CMAKE_CURRENT_BINARY_DIR} | ||
) | ||
|
||
add_library($ENV{proto_message} OBJECT | ||
# | ||
zpointcloud.cpp zimage.cpp | ||
${PROTO_SRCS} | ||
${PROTO_HDRS} | ||
${PROTO_STRUCT_SRCS} | ||
${PROTO_STRUCT_HDRS} | ||
# ${PROTO_PYTHON_SRCS} | ||
) | ||
|
||
target_link_libraries($ENV{proto_message} protobuf::libprotobuf | ||
pcl_common pcl_io # pcl | ||
opencv_imgcodecs opencv_core # opencv | ||
) | ||
|
||
target_include_directories($ENV{proto_message} PUBLIC | ||
${CMAKE_BINARY_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
${CMAKE_CURRENT_BINARY_DIR}/.. # 找到common | ||
${CMAKE_CURRENT_LIST_DIR} | ||
${CMAKE_CURRENT_LIST_DIR}/.. # 找到iguana | ||
${PCL_INCLUDE_DIRS} | ||
${OpenCV_INCLUDE_DIRS} | ||
${CMAKE_BINARY_DIR}/src/protoc-plugin | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/example/perception.proto → src/example/message/perception.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/example/pointcloud.proto → src/example/message/pointcloud.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters