瀏覽代碼

Add info about manual libraries linking to README

Fixes: #150
Alexey Edelev 4 年之前
父節點
當前提交
d4fa4a55fb
共有 1 個文件被更改,包括 7 次插入0 次删除
  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
 #### qtprotobuf_generate