Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, July 2006
qmake test


Message 1 in thread

Hello, qt-interest.

What must I add to *.pro file for the following ability:
   If I run qmake with option test ('c:\...\qmake test'), then
   interested tests will start.

-- 
 [ signature omitted ] 

Message 2 in thread

Hi Irina,

> What must I add to *.pro file for the following ability:
>    If I run qmake with option test ('c:\...\qmake test'), then
>    interested tests will start.

Nothing, because this is not the way to use qmake. qmake is a 
Makefile-generator tool and has fixed command line options. What you can 
do is passing CONFIG switches to qmake like 'qmake "CONFIG+=test"' and add 
blocks in your .pro file like the following:

CONFIG(test) {
        ...
}

Never the less qmake will just generate Makefile(s) from your .pro file 
and you will have to run your make tool afterwards.

See also the "QMake manual" in the docs, especially the chapter "Running 
qmake".

Regards,
Malte

--
 [ signature omitted ] 

Message 3 in thread

Malte Witt schrieb:
> Hi Irina,
> 
>> What must I add to *.pro file for the following ability:
>>    If I run qmake with option test ('c:\...\qmake test'), then
>>    interested tests will start.
> 
> Nothing, because this is not the way to use qmake. qmake is a 
> Makefile-generator tool and has fixed command line options. What you can 
 > ...

However you can specify "custom targets" in your *.pro file, so you can 
at least have something like

   &> gmake test

do your custom commands (with Qt3 at least on Unix, not sure about Windows).

> See also the "QMake manual" in the docs, especially the chapter "Running 
> qmake".

Refer to the same manual on how to specify custom targets.

Cheers, Oliver

--
 [ signature omitted ]