[Interest] QMake generation config file from variables in .pro file

Bo Thorsen bthorsen at ics.com
Mon Jan 20 12:19:53 CET 2014


Den 16-01-2014 14:42, Guido Seifert skrev:
> Hi,
> when I use cmake I can create a file config.h.in, which contains
> things like:
> #define Version "@VERSION@"
>
> in the CMakeLists.txt I can define a variable:
> SET(VERSION "something")
> and add:
>
> configure_file (
>    "config.h.in"
> )
>
> This creates a config.h with #define Version "something".
>
> Question is, can I do the same with qmake? How?

As someone already told you, no this can't be done. But instead of doing 
a python script or some other home grown system, you might want to take 
a look at qbs.

Bo.

-- 
Bo Thorsen, European Engineering Manager, ICS
Integrated Computer Solutions. Delivering World-Class Applications
http://ics.com/services



More information about the Interest mailing list