QtCreator - Need change Release/Debug on all open projects by one click
-
mlong, it is supported. I've done it in couple of projects
-
Gourmand,
assuming that the renaming of your subdir/subproject works, the only difference I have seen is that you have added subdirs template instead of substituting.
Just to make sure that you did not oversee that change@TEMPLATE += subdirs@
to
@TEMPLATE = subdirs@
Possibly there is no effect when there was no template set before.
-
Looks like this is true. Very surprising cause += works in all other project settings. I changed to TEMPLATE = subdirs and project almost opened. But only latest UIPlugin subproject appeared in project. No one other subproject was opened.
-
[quote author="Denis Kormalev" date="1313608432"]mlong, it is supported. I've done it in couple of projects[/quote]
Ok, good to know. I've been using Qt long enough that I probably am remembering a time when it didn't. :-)
-
Can anybody tell why only latest subproject openes with superproject?
-
Probably an incorrect subdirs thingy. I never had that problem when I was using it.
-
Subdirs match to exact directory structure. Project files match too. This was checked.
-
Care to post the current state?
-
it is the same as on 1st page but on 1st line is
TEMPLATE = subdirs
instead of
TEMPLATE += subdirs
other lines are identical
-
finally I've got subrojects loaded, the superproject file looks like this:
@TEMPLATE = subdirs
CONFIG += orderedSUBDIRS += sciQtldyn
CI_STD
deciQt/deciQtl
qtcolorpicker-2.6_1-opensource/buildlib
CI_FED
SCPS-K
ci_ui
EmptyPlugin
EmptyPlugin2
textedit
UIPluginsciQtldyn.file = sciQtldyn/sciQtldyn.pro
CI_STD.file = CI_STD/CI_std15_plugin.pro
deciQt/deciQtl.file = deciQt/deciQtl/deciQtldyn.pro
qtcolorpicker-2.6_1-opensource/buildlib.file = qtcolorpicker-2.6_1-opensource/buildlib/buildlib.pro
CI_FED.file = CI_FED/CI_FED15_plugin.pro
SCPS-K.file = SCPS-K/SCPS-K.pro
ci_ui.file = ci_ui/ci_ui.pro
EmptyPlugin.file = EmptyPlugin/EmptyPlugin.pro
EmptyPlugin2.file = EmptyPlugin2/EmptyPlugin2.pro
textedit.file = textedit/textedit.pro
UIPligin.file = UIPlugin/uiplugin.pro@I don't know why Creator loaded latest subproject without it's directory name, but did not load others... This is hidden.
But entire project doesn't built. An error appears
bq. :-1: error: No rule to make target
c:/Qt/2009.03/qt/mkspecs/win32-g++/qmake.conf', needed by
Makefile'. Stop. File not found.WHICH ONE FILE???
Ok... I'm sure subprojects are good if you create new project from 0. But if you already have some project at the middle - then remaster it to subprojects structure becomes annoying.
There is some progress in my open suggestion
https://bugreports.qt.nokia.com/browse/QTCREATORBUG-5823
Vote for it, may be this will be created soon...
-
This work for me:
TEMPLATE = subdirs
CONFIG+= ordered
SUBDIRS += Service/Service.pro
SceneManager/SceneManager.pro
Apollo/Apollo.proBut i had problens with debug and release modes :(