Project directory structure
- Visual Studio 19 - v16.6
- Qt 5.15.0 - msvc2019
Steps to reproduce
- Create a Qt Widgets Application project in a two levels nested directory.
- Right-Click on the project -> Add -> Existing Item... and select a Qt class that is two levels downwards in the directory hierarchy.
- Right-Click on the project -> Properties -> C/C++ -> General -> and add Additional Include Directories to the location where the Qt class is.
- Compile and you will see that Moc generated the class in the wrong location, which will result for compilation failure.
Moc should generate the moced-classes respectively under the $(OutDir)moc directory.
I attached the project files to reproduce this issue.
Thanks for the amazing work with MsBuild & Qt-VS-Tools!