Unsolved QT Creator "subdirs" project gui & projects libs
Hi everyone, I have a very good question, how can I make the .lib link in the gui project?
the solution to import .lib into a project and use $$OUT_PWD
INCLUDEPATH += ../lib INCLUDEPATH += ../lib2 LIBS += $$OUT_PWD/../lib/release/lib.lib LIBS += $$OUT_PWD/../lib2/release/lib2.lib
There might be a better way, more cross platform. Given your libraries are called libOne.lib and libTwo.lib, the lines would look like this:
LIBS += -L$$OUT_PWD/../lib/release -lOne LIBS += -L$$OUT_PWD/../lib2/release -lTwo
The advantage here is (for shared libraries, you had static ones in your project), that QtCreator automatically extends the library search path when you run your app so it will find all libs.
In addition you may want to add them to