Implements loading of proto files
This commit is contained in:
14
protocol_buffers_definitions/CMakeLists.txt
Normal file
14
protocol_buffers_definitions/CMakeLists.txt
Normal 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}")
|
||||
|
Reference in New Issue
Block a user