Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Set output dir in .pro file
Can someone tell me is it possible to set in .pro file for the .exe file to be create in the same directory as the source?
The easiest is to not use the Shadow Build feature of Qt Creator.
However this also means that you will have all build artefacts in your sources which is something that you usually want to avoid.
mandruk1331 last edited by mandruk1331
@SGaist But is it possible in the .pro file to copy the file which I want into the source folder?
The goal which I want to achieve, is for the Application which depends on a library remove the hardcoded path to the library path of where it is built.
INCLUDEPATH += "../LibFile" LIBS += "C:\Users\<UserName>\Documents\build-LibFile-Desktop_Qt_5_11_1_MinGW_32bit-Debug\debug\libLibFile.a
Is that a subdirs project or two completely separated projects ?
@SGaist The first is the location of the include files of the liLibFile.a
That I know. My question was: is that library and the application parts of a project using the subdirs template or are they completely separated projects ? The INCLUDEPATH line suggests the former.
@SGaist they are completely different projects
@mandruk1331 but you are working on both regularly?
The SUBDIRS is the BEST you can do.
The projects might still be in different Git repositories, but with Git submodule and Qt SUBDIRS you get the maximum productivity and flexibility.