Momergil
10th May 2014, 15:55
Hello!
For better organization, I'ld like to put all files generated by QtCreator in a build command inside a "build" folder in my projects' folder. I've learned how to do most of this part - by configuring the .pro file of a project with the lines
MOC_DIR = build/moc
OBJECTS_DIR = build/obj
UI_DIR = build/ui
RCC_DIR = build/
and this part runs OK. The problem is that no matter how I try, when I run qmake it still insists in creating a "debug" and a "release" folder in my projects' base folder instead of creating them inside the "build" folder. I tried to correct this by configuring the DESTDIR variable:
win32
{
debug: DESTDIR = build/debug
release: DESTDIR = build/release
}
and although this was enough to make QtCreator put the executables and related in the correct place, qmake still insists in creating a "debug" and "release" folder in my projects' base folder (now always empty). How do I change this? It's interesting that, when configuring the project at the time of creating, I wrote that I wanted de build and release directories to be inside a "build" folder, but still Qt Creator didn't obey me :(
So how do I stop qmake from creating this two unecessary folders in my projects' base directory?
Thanks,
Momergil
For better organization, I'ld like to put all files generated by QtCreator in a build command inside a "build" folder in my projects' folder. I've learned how to do most of this part - by configuring the .pro file of a project with the lines
MOC_DIR = build/moc
OBJECTS_DIR = build/obj
UI_DIR = build/ui
RCC_DIR = build/
and this part runs OK. The problem is that no matter how I try, when I run qmake it still insists in creating a "debug" and a "release" folder in my projects' base folder instead of creating them inside the "build" folder. I tried to correct this by configuring the DESTDIR variable:
win32
{
debug: DESTDIR = build/debug
release: DESTDIR = build/release
}
and although this was enough to make QtCreator put the executables and related in the correct place, qmake still insists in creating a "debug" and "release" folder in my projects' base folder (now always empty). How do I change this? It's interesting that, when configuring the project at the time of creating, I wrote that I wanted de build and release directories to be inside a "build" folder, but still Qt Creator didn't obey me :(
So how do I stop qmake from creating this two unecessary folders in my projects' base directory?
Thanks,
Momergil