Implements loading of proto files

This commit is contained in:
2021-06-17 20:14:50 +02:00
parent 03c0d30928
commit f6e691d3db
6 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
find_package(Protobuf REQUIRED)
include_directories(${PROTOBUF_INCLUDE_DIR})
set(PROTO_LIST
locatorevents.proto
positions.proto
recordings.proto
sensors.proto
structures.proto
)
protobuf_generate_cpp(PROTO_SRC PROTO_HEADER ${PROTO_LIST})
add_library(proto ${PROTO_HEADER} ${PROTO_SRC})
set_target_properties(proto PROPERTIES PUBLIC_HEADER "${PROTO_HEADER}")