esri_assignment/protocol_buffers_definitions/CMakeLists.txt

15 lines
370 B
CMake
Raw Normal View History

2021-06-17 20:14:50 +02:00
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}")