|
@@ -11,20 +11,20 @@
|
|
|
# PROTOBUF_INCLUDE_DIR - The include directory for protocol buffers
|
|
# PROTOBUF_INCLUDE_DIR - The include directory for protocol buffers
|
|
|
# PROTOBUF_PROTOC_EXECUTABLE - The protoc compiler
|
|
# PROTOBUF_PROTOC_EXECUTABLE - The protoc compiler
|
|
|
#
|
|
#
|
|
|
-#====================================================================
|
|
|
|
|
-# Example:
|
|
|
|
|
|
|
+# ====================================================================
|
|
|
|
|
+# Example:
|
|
|
#
|
|
#
|
|
|
-# find_package(Protobuf REQUIRED)
|
|
|
|
|
-# include_directories(${PROTOBUF_INCLUDE_DIRS})
|
|
|
|
|
|
|
+# find_package(Protobuf REQUIRED)
|
|
|
|
|
+# include_directories(${PROTOBUF_INCLUDE_DIRS})
|
|
|
#
|
|
#
|
|
|
-# include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
-# PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS foo.proto)
|
|
|
|
|
-# add_executable(bar bar.cc ${PROTO_SRCS} ${PROTO_HDRS})
|
|
|
|
|
-# target_link_libraries(bar ${PROTOBUF_LIBRARY})
|
|
|
|
|
|
|
+# include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
+# PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS foo.proto)
|
|
|
|
|
+# add_executable(bar bar.cc ${PROTO_SRCS} ${PROTO_HDRS})
|
|
|
|
|
+# target_link_libraries(bar ${PROTOBUF_LIBRARY})
|
|
|
#
|
|
#
|
|
|
# NOTE: You may need to link against pthreads, depending
|
|
# NOTE: You may need to link against pthreads, depending
|
|
|
# on the platform.
|
|
# on the platform.
|
|
|
-#====================================================================
|
|
|
|
|
|
|
+# ====================================================================
|
|
|
#
|
|
#
|
|
|
# PROTOBUF_GENERATE_CPP (public function)
|
|
# PROTOBUF_GENERATE_CPP (public function)
|
|
|
# SRCS = Variable to define with autogenerated
|
|
# SRCS = Variable to define with autogenerated
|
|
@@ -33,7 +33,7 @@
|
|
|
# header files
|
|
# header files
|
|
|
# ARGN = proto files
|
|
# ARGN = proto files
|
|
|
#
|
|
#
|
|
|
-#====================================================================
|
|
|
|
|
|
|
+# ====================================================================
|
|
|
|
|
|
|
|
|
|
|
|
|
#=============================================================================
|
|
#=============================================================================
|