如何在 Qt 中为 qmake 指定库文件依赖项?
有一个 SomeLib.pro 文件,其中包含:
Have a SomeLib.pro file that contains:
CONFIG += debug
TEMPLATE = lib
TARGET = SomeLib
..
然后在依赖的SomeApp.pro中:
Then in a dependent SomeApp.pro:
..
debug:LIBS += -lSomeLib_debug
..
如果我在 qmake 中碰了 SomeLib,如何强制 SomeApp 构建?
How can I force SomeApp to build if I touched SomeLib in qmake?
推荐答案
这很丑,因为你需要给出确切的库文件名,但这应该可以:
It's ugly because you need to give the exact library file name, but this should work:
TARGETDEPS += libfoo.a
TARGETDEPS += libfoo.a
相关文章