Here are the lines I added in my .pro to set a custom build dir.
BASEPATH = ../some/path/
CONFIG(debug, debug|release) {
BUILDDIR = $${BASEPATH}/debug
} else {
BUILDDIR = $${BASEPATH}/release
}
OBJECTS_DIR = $${BUILDDIR}/obj
MOC_DIR = $${BUILDDIR}/moc
RCC_DIR = $${BUILDDIR}/rcc
UI_DIR = $${BUILDDIR}/ui
MAKEFILE = $${BUILDDIR}/Makefile
However, it fails with the error :
error : No rule to make target `../project/project.pro', needed by `Makefile'. Stop.
It works well if I remove the MAKEFILE=...
line but I don't want the Makefile to be output in the same dir than the source files.
So am I looking for some impossible thing or is MAKEFILE
the wrong variable to edit ?
Thanks.