build protobuf

This commit is contained in:
philippe44
2022-11-29 16:49:35 -08:00
parent 856303d8f1
commit 3fade26793

View File

@@ -36,7 +36,7 @@ if(UNIX AND NOT APPLE)
endif()
# Build protobuf code
if(0)
if(1)
set(NANOPB_OPTIONS "-I${CMAKE_CURRENT_SOURCE_DIR}")
file(GLOB PROTOS protobuf/*.proto)
nanopb_generate_cpp(PROTO_SRCS PROTO_HDRS RELPATH ${CMAKE_CURRENT_SOURCE_DIR} ${PROTOS})