Scroll to navigation

QMAKE(1) General Commands Manual QMAKE(1)

NAME

qmake - cross-platform makefile generator for Qt

SYNOPSIS

qmake [mode] [options] [files]

DESCRIPTION

QMake has two modes, one mode for generating project files based on some heuristics, and the other for generating makefiles. Normally you shouldn't need to specify a mode, as makefile generation is the default mode for qmake, but you may use this to test qmake on an existing project.

MODE

Put qmake into project file generation mode. In this mode qmake interprets files as files to be built, defaults to *.c; *.ui; *.y; *.l; *.ts; *.xlf; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C.
Put qmake into makefile generation mode (default). In this mode qmake interprets files as project files to be processed, if skipped qmake will try to find a project file in your current working directory.

WARNINGS OPTIONS

Turn off all warnings; specific ones may be re-enabled by later -W options
Turn on all warnings
Turn on parser warnings
Turn on logic warnings (on by default)
Turn on deprecation warnings (on by default)

OPTIONS

Write output to file
Increase debug level
Overrides TEMPLATE as templ
Overrides TEMPLATE so that prefix is prefixed into the value
Displays a help text
Version information
All variable assignments after this will be parsed after [files]
Do not do a recursive search
Do a recursive search
Set persistent property
Unset persistent property
Query persistent property. Show all if <prop> is empty.
Use file instead of looking for qt.conf
Use file as cache [makefile mode only]
Use spec as QMAKESPEC [makefile mode only]
Do not use a cache file [makefile mode only]
Do not generate dependencies [makefile mode only]
Do not generate moc targets [makefile mode only]
Do not look for files in pwd [project mode only]

SEE ALSO

/usr/share/qt5/doc/qmake/qmake-manual.html, assistant(1)

AUTHOR

This manual page was written by Brian Nelson <pyro@debian.org> based on the output of qmake -help . Frederik Schwarzer <schwarzerf@gmail.com> updated it for Qt 4.5.2.

2017-04-09 The Qt Company Ltd.