PDA

View Full Version : qmake install only installs debug targets



bouchebeu
15th May 2014, 10:12
Hello,

I am under windows with Qt5.
I have projects looking like this:

MyProjects
|--MyProject1
|----file1.cpp
|----file1.h
|----project1.pro
|--MyProject2
|----file2.cpp
|----file2.h
|----project2.pro

I would like to build both debug and release versions.
Everything goes fine until I try to install the targets.
I only want to install the release targets.

From MyProject1 folder, the nmake release-install command achieves this.

The problem I have is that from the top folder (MyProjects), the release-install target doesn't exist in the Makefile; and the nmake install command only installs the debug targets.

I see in the terminal that this command actually calls Makefile.debug install.

Do you have any idea on how to do such a thing ?
Maybe trying to set the release mode as default, but I don't know how to do it.

Thanks for your answers.

bouchebeu
16th May 2014, 16:07
I only want to install the release targets.

Well, as a matter of fact, I would be pleased with installing both debug and release targets.

For the moment, nmake install only copies debug targets.
The only way I found to install the release targets is to set my .pro files with CONFIG += release; unfortunately, (and logically) no debug builds occur with this configuration.

I'm a bit stuck.


Thanks for your thoughts.

d_stranz
16th May 2014, 19:12
Have you tried using CONFIG += debug_and_release?

bouchebeu
19th May 2014, 16:58
Yes, that's currently my option.

Just in case it matters, I'm building libraries.
My config in the .PRO file,


TEMPLATE = lib
CONFIG += dll debug_and_release