Browse Source

Add ProtobufGenerator as required package to documentation

Alexey Edelev 3 years ago
parent
commit
a96d916ecc
3 changed files with 3 additions and 3 deletions
  1. 1 1
      README.md
  2. 1 1
      examples/clienttutorial/main.cpp
  3. 1 1
      src/qttypes/qtprotobufqttypes.h

+ 1 - 1
README.md

@@ -409,7 +409,7 @@ You can integrate QtProtobuf as submodule in your project or as installed in sys
 
 ```cmake
 ...
-find_package(QtProtobuf CONFIG REQUIRED COMPONENTS Protobuf Grpc)
+find_package(QtProtobuf CONFIG REQUIRED COMPONENTS ProtobufGenerator Protobuf Grpc)
 file(GLOB PROTO_FILES ABSOLUTE ${CMAKE_CURRENT_SOURCE_DIR}/path/to/protofile1.proto
  ${CMAKE_CURRENT_SOURCE_DIR}/path/to/protofile2.proto
  ...

+ 1 - 1
examples/clienttutorial/main.cpp

@@ -35,7 +35,7 @@
  * Add following line in your CMakeLists.txt to add QtProtobuf as project dependency:
  *
  * \code
- * find_package(QtProtobuf COMPONENTS Protobuf Grpc REQUIRED)
+ * find_package(QtProtobuf COMPONENTS ProtobufGenerator Protobuf Grpc REQUIRED)
  * ...
  * target_link_libraries(clienttutorial PRIVATE QtProtobuf::Grpc QtProtobuf::Protobuf)
  * \endcode

+ 1 - 1
src/qttypes/qtprotobufqttypes.h

@@ -69,7 +69,7 @@
  * To enable Qt types support add ProtobufQtTypes as dependency to CMake project:
  * \code
  * ...
- * find_package(QtProtobuf CONFIG COMPONENTS Protobuf ProtobufQtTypes REQUIRED)
+ * find_package(QtProtobuf CONFIG COMPONENTS ProtobufGenerator Protobuf ProtobufQtTypes REQUIRED)
  * ... #After target creation
  * target_link_libraries(${TARGET} PRIVATE ${QT_PROTOBUF_NAMESPACE}::ProtobufQtTypes)
  * \endcode