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

Guido Seifert wargand at gmx.de
Thu Jan 16 14:42:14 CET 2014


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?

Guido



More information about the Interest mailing list