How to set source directory in qmake?
-
Hi,
Yes, put src/ in front of all concerned file paths in your .pro file.
Note that if you use an out of source build, you don't have to worry about that.
-
Hi,
Yes, put src/ in front of all concerned file paths in your .pro file.
Note that if you use an out of source build, you don't have to worry about that.
-
As the name suggests: a build that happens out of your application source tree.
-
@kitfox said in How to set source directory in qmake?:
@SGaist What's an out of source build?
Sometimes it's called "shadow build": Creator uses them by default.
-
Hi! You can add these commands to your
.profile:MOC_DIR = ./src/moc OBJECTS_DIR = ./src/objects RCC_DIR = ./src/resourceIt will clean up your application build directory and store all the
moc, objects, resourcesfiles in thesrcdirectory.