Browse Source

Add info about manual libraries linking to README

Fixes: #150
Alexey Edelev 4 years ago
parent
commit
d4fa4a55fb
1 changed files with 7 additions and 0 deletions
  1. 7 0
      README.md

+ 7 - 0
README.md

@@ -207,6 +207,13 @@ GENERATED_HEADERS ${GENERATED_HEADERS})
 ...
 ...
 ```
 ```
 
 
+In case if you somehow avoided ```qtprotobuf_generate``` usage, you need manualy link QtProtobuf libraries used by project, e.g.:
+```cmake
+...
+target_link_libraries(${TARGET} QtProtobuf::QtProtobuf QtProtobuf::QtGrpc QtProtobuf::QtProtobufWellKnownTypes)
+...
+```
+
 ### CMake functions reference
 ### CMake functions reference
 #### qtprotobuf_generate
 #### qtprotobuf_generate