Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对应该如何在库项目(Windows)中使用 QtTest FrameWork 感到困惑。我创建了一个库项目并添加了一些测试,但尝试运行测试时遇到了很多问题。解决我的问题的关键是设置:
TEMPLATE = app
但是,我正在制作一个 lib……app 也制作一个 exe,而不是一个 dll。我真的希望在测试和更改为“lib”以实际构建库时不必手动将项目文件更改为“app”。这似乎是徒劳的。
那么,库项目中的 QtTests 是怎么回事?
谢谢