logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

qmake - cross-platform makefile generator for Qt

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.

The Qt Company Ltd.                                2017-04-09                                           QMAKE(1)

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

-project
              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.

       -makefile
              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.

Name

       qmake - cross-platform makefile generator for Qt

Options

-ofile
              Write output to file

       -d     Increase debug level

       -ttempl
              Overrides TEMPLATE as templ-tpprefix
              Overrides TEMPLATE so that prefix is prefixed into the value

       -help  Displays a help text

       -v     Version information

       -after All variable assignments after this will be parsed after [files]

       -norecursive
              Do not do a recursive search

       -recursive
              Do a recursive search

       -set<prop><value>
              Set persistent property

       -unset<prop>
              Unset persistent property

       -query<prop>
              Query persistent property. Show all if <prop> is empty.

       -qtconffile
              Use file instead of looking for qt.conf

       -cachefile
              Use file as cache [makefile mode only]

       -specspec
              Use spec as QMAKESPEC [makefile mode only]

       -nocache
              Do not use a cache file [makefile mode only]

       -nodepend
              Do not generate dependencies [makefile mode only]

       -nomoc Do not generate moc targets [makefile mode only]

       -nopwd Do not look for files in pwd [project mode only]

See Also

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

Synopsis

qmake[mode][options][files]

Warnings Options

-Wnone Turn off all warnings; specific ones may be re-enabled by later -W options

       -Wall  Turn on all warnings

       -Wparser
              Turn on parser warnings

       -Wlogic
              Turn on logic warnings (on by default)

       -Wdeprecated
              Turn on deprecation warnings (on by default)

See Also