Unsolved Set output dir in .pro file
-
Hello.
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? -
Hi,
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.
-
@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.
MainProject.proINCLUDEPATH += "../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.