I'm using an external build directory to avoid conflicts with shared libraries and keep my source directory clean from temporary files. Therefore my definition of the intermediate directory looks like this:
$(EDUBUILD)\$(SolutionName)\$(ProjectName)\$(Configuration)_$(PlatformName)\
Where EDUBUILD is an environment variable which is pointing to the external build directory, this can be at a different location on various systems. Obviously I would like to create the temporary results of the UIC, RCC and MOC in the same intermediate directory.
$(IntDir)\uic $(IntDir)\moc $(intDir)\rcc
But this is not possible, for unknown reasons the user interface blocks adding this valiables - even the $(IntDir) is the best variable for creating intermediate files.
By the way, because the $(IntDir) usually contains variables for Debug/Release and x86/x64 - this would remove the need for this mess:
And reduce it to one simple moc_*step per header file.
- relates to
-
QTVSADDINBUG-105 moced source files are output to the same directory, prone to filename clashes
-
- Closed
-