I have a Qt project that uses qmake. To improve clarity and readability, I\'d like to keep the
You can add the following lines to your *.pro
file:
DESTDIR=bin #Target file directory
OBJECTS_DIR=generated_files #Intermediate object files directory
MOC_DIR=generated_files #Intermediate moc files directory
A list of variables is available at the following locations:
https://wiki.qt.io/Undocumented_QMake#Config_features
object_with_source — outputs each object file into the same directory as its source file (replaced by object_parallel_to_source in the latest versions).
object_parallel_to_source — recreate source folder tree for object files (replaces object_with_source).
in *.pro write
CONFIG += object_parallel_to_source