we are currently compiling a tool library and an application using two different project files (which we load into QT Creator seperately). To make things easier I have been trying to write a project file which combines these two projects using the subdirs template - since we also work with Visual Studio on Windows we hope to also generate VC solutions including 2 projects from this...
I wrote a simple file that sits in a "project" directory which includes the relative paths to the relevant projects (although not really subdirs):
TEMPLATE = subdirs
CONFIG += qt debug_and_release
SUBDIRS = ../libs/mylib ../apps/myapp
myapp.depends = mylib
this generates a Makefile but on compiling gives this error:
Makefile:66: *** multiple target patterns. Stop.
Same error message occurs in QT Creator (although the 2 projects load fine), furthermore the debug or release chooser is not accesible...
What am I doing wrong? Does this happen because my dirs are not really subdirs of the main project file? If so, how do you layout a structure with libraries that span to other projects and thus can't be subdirs of the app in question?