我有一个文件夹,其中包含我的源代码 (*.cpp
)。我怎样才能告诉 qmake 在那里寻找资源?我不想为每个 .cpp
文件写完整路径。
对于包含文件,我可以说:
INCLUDEPATH += /path/to/include/files
源文件有类似的东西吗?
最佳答案
您正在寻找的是 VPATH。
Tells qmake where to search for files it cannot open. For example, if qmake looks for SOURCES and finds an entry that it cannot open, it looks through the entire VPATH list to see if it can find the file on its own.
关于qt - 我如何告诉 qmake 有关源文件目录的信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18946018/