Currently QtCreator creates .o and moc_ files in the root folder of the application. How I can instruct the project file to put them in a subfolder called "obj"?
You can use the OBJECTS_DIR
and MOC_DIR
variables for this. e.g. Qt itself does something like this while building:
OBJECTS_DIR = .obj
MOC_DIR = .moc
In this case I think the .obj, .moc directories are relative to the directory containing the Makefile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With