You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
298 B

find_package(Protobuf REQUIRED)
set(Protobuf_USE_STATIC_LIBS ON)
include_directories(${Protobuf_INCLUDE_DIRS})
protobuf_generate_cpp(PROTO_SRC PROTO_HDR benchmark.proto)
add_library(benchmark_proto ${PROTO_HDR} ${PROTO_SRC})
target_link_libraries(benchmark_proto INTERFACE ${Protobuf_LIBRARIES})