QtCreator - Need change Release/Debug on all open projects by one click
-
Gourmand, I think a small test made by yourself will show you is it a good option for you.
-
Ok, I just made superproject file 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.pro
CI_STD.file = CI_std15_plugin.pro
deciQt/deciQtl.file = deciQtldyn.pro
qtcolorpicker-2.6_1-opensource/buildlib.file = buildlib.pro
CI_FED.file = CI_FED15_plugin.pro
SCPS-K.file = SCPS-K.pro
ci_ui.file = ci_ui.pro
EmptyPlugin.file = EmptyPlugin.pro
EmptyPlugin2.file = EmptyPlugin2.pro
textedit.file = textedit.pro
UIPligin.file = uiplugin.pro@this doesn't work. This superproject file is placed into directory on top of all subproject directories. When I open superproject.pro in Qt Creator then I see only this project. I expected all subprojects will be opened inside it. I need mandatory access to each subproject individually. And even project build doesn't work. What is wrong here?
-
At first try to update your QtCreator. Afair you are using 2.0.1 which is too old
-
Hah... here is the question - how to install separate QtCreator package in Windows over old QtCreator? And do not change Qt for while. I do not want upgrade all Qt now - I have dynamically and statically versions. This upgrade will take some time but I cannot spend it now. I downloaded latest QtCreator but installer does not see already installed one. It does not suggest upgrade, just install new. But I want upgrade. How better do that?
-
Ok, I installed 2.2.1 and opened superproject. Result is the same.
On the "run qmake" it generates Makefile without any mention of subprojects.
BTW: Tried add existing project to superproject - it adds as "other file". But logically it must add project to .pro as subproject.
-
Just added another one suggestion - ability add existing subproject into superproject created manually or by SUBDIRS wizard. Now this wizard is almost useless. It only allows create empty subprojects but not add existing. For all who agree wit this - please vote for it:
https://bugreports.qt.nokia.com/browse/QTCREATORBUG-5837
I tried create subdirs file manually but without success. And my question is still open...
-
@TEMPLATE = subdirs
CONFIG += orderedSUBDIRS += sciQtldyn
CI_STD
deciQt/deciQtl
qtcolorpicker-2.6_1-opensource/buildlib
CI_FED
SCPS-K
ci_ui
EmptyPlugin
EmptyPlugin2
textedit
UIPlugin
@I have changed two things:
TEMPLATE statement
removed the section with the different files.
Probably you have included the last section because of some renaming purposes I do not understand. So you may want to start with changing the TEMPLATE statement only.
-
-I'm not sure how well the subdirs template handles directories in the SUBDIRS variable which are not immediately below the current directory. As such, I'm not sure if the-
@ deciQt/deciQtl
qtcolorpicker-2.6_1-opensource/buildlib \ @ -targets will work properly.-Edit: I was wrong.
-
bq. Probably you have included the last section because of some renaming purposes I do not understand. So you may want to start with changing the TEMPLATE statement only.
This section is needed cause project names are not the same as folders names. And they cannot be changed now. This section was added as recommended here:
http://www.qtcentre.org/wiki/index.php?title=Undocumented_qmake#SUBDIRS_projects
bq. I’m not sure how well the subdirs template handles directories in the SUBDIRS variable which are not immediately below the current directory.
Probably this could produce problem. But this is needed by project structure and cannot be changed quickly. If SUBDIRS cannot include nested dirs - then SUBDIRS is not appropriate solution for me. Just another reason to write suggestion...
-
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.