Qt Extended Home · Build System Home · Reference · User Guide · Internals codeless banner

DEFINES

Usage

    DEFINES+=FOO
    DEFINES+=BAR=value

Description

Add a define. The first case can be tested with #ifdef FOO. The second can also be used as a value. Since this is passed to the compiler on the commandline you will need to quote any characters that are interpreted by the shell. For example, a string should be passed as DEFINES+=STR=\\"str\\".

See also Variables and Automatic DEFINES.


Copyright © 2009 Trolltech
Qt Extended - Build System Documentation