C#C
C#3y ago
CrosRoad95

❔ protobuf not generating proto files

INCLUDE(FindProtobuf)
FIND_PACKAGE(Protobuf REQUIRED)
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIR})
PROTOBUF_GENERATE_CPP(PROTO_SRC PROTO_HEADER test.proto)
ADD_LIBRARY(proto ${PROTO_SRC} ${PROTO_HEADER})

i'm confused why it doesn't work, have protobuf installed, no error but file test.pb.h not generating
image.png
Was this page helpful?