Reputation: 981
Trying to keep my project folder clean by movimg all temporarily files to /tmp
which works fine for moc files and objects with OBJECTS_DIR = tmp/
and MOC_DIR = tmp/
. Now the only temporary file at top level is the qrc_something.cpp
.
Isn't there a variable for that output in the .pro
file? I could not find it here.
Makefile looks like this:
tmp/qrc_configwizard.o: qrc_configwizard.cpp
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/qrc_configwizard.o qrc_configwizard.cpp
I could add the tmp/
there but that would be very inconvenient (or should it rather be in src? At least not top level, or?).
Upvotes: 0
Views: 125
Reputation: 22796
The variable you're looking for is called RCC_DIR
.
May I suggest to use a shadow build instead of playing with these variables?
mkdir build
cd build
qmake ../../path/to/source.pro
make
Done, source directory clean of build artifacts.
Upvotes: 3