Is it possible to set up a TEMPLATE = subdirs .pro file such that qmake -tp vc will set up project dependencies in the generated Visual Studio Solution?
I have tried using CONFIG += ordered followed by the SUBDIRS += <libdir> entries in the correct order but this seems to have no effect on the “Project Dependencies” setting in the solution properties dialog.
Thanks!
I am answering my own question since no one seems to have found a solution yet. As far as I can tell, there is still no way to set up Visual Studio Project Dependencies using a QT .pro file. We are using an executable that we developed (also using Qt) to do this manually after the project build is complete. The code used to build the executable works for Visual Studio 2010 solutions and appears below. It is fairly simple and updates your solution such that all included projects will depend on all projects input at the command line. ie.
vcSlnDependencies filename.sln dependency1 dependency2 dependency3will set all projects in filename.sln to depend on dependency1, dependency2, and dependency3. Obviously a project is never set to depend on itself. This code should be easily modifiable to allow for more complex dependency structures.