15 lines
370 B
CMake
15 lines
370 B
CMake
|
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}")
|
||
|
|