qt Qmake为项目生成pkgconfig [英] qt Qmake generating pkgconfig for a project
本文介绍了qt Qmake为项目生成pkgconfig的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我被告知可以通过qmake生成一个pkg-config文件,但我不知道该怎么做。我一直在网上找了一段时间,看起来好像它只是你只需要知道如何做。
I have been told that it is possible to generate a pkg-config file through qmake, but I have no idea how to do it. I have been looking online for a while, and it seems as though it is something you just have to know how to do. Can someone give me an example, or point me to some sort of guide/tutorial?
推荐答案
是这你在找什么?
EDIT:以上链接中的简短摘要(如下面评论中的主持人所要求):
A short summary from the link above (as requested by Moderator in the comment below):
要使用qmake生成pkg-config,您必须添加到)您的项目文件(* .pro文件):
To generate pkg-config using qmake you have to add to (modify) your project file (*.pro file):
unix {
CONFIG += link_pkgconfig
PKGCONFIG += <pc_file_without_extension>
}
这篇关于qt Qmake为项目生成pkgconfig的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文