[Qt-interest] Building three separate applications using one .pro file

Santhosh Y santhosh at softjin.com
Tue Apr 14 13:13:06 CEST 2009


Hi,

I know making one application using a .pro file in Qt.

Now I want to do the following:
Using one .pro file I would like to generate Makefile, which in turn can 
build three separate executables.

For example:
I would like to build   exe1, exe2 & exe3 respectively.
After generating make file from .pro, if I write "nmake release" it 
should build all the three executables.
If I write "nmake release exe1", it should build only the specified 
executable, in this case it is exe1.

Is the above described problem can be do-able using one .pro

If so, please suggest me how to do this?

Or if any alternative solutions are there, please suggest me.

_*In short the problem is :*_
I have  5 directories; dir1, ....dir5.

In building exe1,  I use  dir1, dir2 & dir3.
In building exe2,  I use  dir2, dir3 & dir5.
In building exe2,  I use  dir2, dir3 & dir4.

So, in the above case I can specify all the directories in one .pro file
I can give DESTDIR, in which all the above 3-exe's  will be written, 
depending on the "nmake ..." executed.



Regards,
Santhosh








-- 
----------------------------------------------------
Y Santhosh Kumar
Senior Software Engineer
SoftJin Technologies Private Limited
Unit No. 102, Mobius Tower,
I Floor, SJR I - Park,
EPIP, White Field,
Bangalore - 560066, India
U : www.softjin.com
E : santhosh at softjin.com
T : +91-80-41779999
M : +91-9740535265
----------------------------------------------------



Business Disclaimer
____________________________________________________________
This e-mail message and any files transmitted with it are intended solely
for  the use  of the  individual or entity  to which they  are  addressed. It
may  contain confidential,  proprietary or legally  privileged  information.
If  you  are  not  the  intended recipient please be advised that you have
received  this  message in error and any use is strictly prohibited. Please
immediately  delete it  and all copies of it from your system, destroy any
hard  copies  of  it and  notify  the  sender  by return mail. You must not,
directly or indirectly, use,  disclose,  distribute, print, or copy any part of
this message if you are not the intended recipient.
___________________________________________________________





More information about the Qt-interest-old mailing list