Since the title of the question says, I just wonder how to include the path to the DLL file in the project file. I know that it is better to use a DLL file with a project file, but I would like to know if this is possible?
Currently, my .pro file consists of the following:
QT += core gui
TARGET = Test
TEMPLATE = app
win32 {
INCLUDEPATH += "D:/Projects/Build Output/include/"
CONFIG(debug, debug|release) {
LIBS += "D:/Projects/Build Output/libs/debug/myLib.lib"
LIBS += "D:/Projects/Build Output/bin/x86 debug/myLib.dll"
}
else {
LIBS += "D:/Projects/Build Output/libs/release/myLib.lib"
LIBS += "D:/Projects/Build Output/bin/x86 release/myLib.dll"
}
}
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
It would be great just to know that this can be done, in advance for your help :).
source
share