QMAKE(1)

πŸ’… QMAKE β€” the manual page, but make it bestie

okay so hi!! you're reading qmake(1), the general commands manual page for qmake, and bestie, it's the cross-platform makefile generator for Qt. yes. THE one. let's go πŸŽ€


✨ SYNOPSIS ✨

qmake [mode] [options] [files]

🌸 DESCRIPTION 🌸

So qmake has two modes, and they're giving very different energy:

  1. one mode where it generates project files based on some heuristics
  2. and another mode where it generates makefiles

And the tea is: normally you don't even need to specify a mode, because makefile generation is the default for qmake. But you can use it if you wanna test qmake on an existing project. lowkey handy fr πŸ’…


πŸ¦‹ MODE πŸ¦‹

  • -project β€” puts qmake into project file generation mode. In this mode qmake interprets files as files to be built. And the defaults? Obsessed with this list, here it is exactly: *.c; *.ui; *.y; *.l; *.ts; *.xlf; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C.
  • -makefile β€” puts qmake into makefile generation mode, which is the default bestie. In this mode qmake interprets files as project files to be processed, and if it's skipped, qmake will try to find a project file in your current working directory. it's giving "I'll find it myself, don't worry" ✨

⚠️ WARNINGS OPTIONS ⚠️

  • -Wnone β€” turn off all warnings. but note: specific ones can be re-enabled by later -W options πŸ‘€
  • -Wall β€” turn on all the warnings. every single one. let them cook πŸ”₯
  • -Wparser β€” turn on parser warnings
  • -Wlogic β€” turn on logic warnings (on by default, so she's already here)
  • -Wdeprecated β€” turn on deprecation warnings (also on by default, she's been here the whole time)

πŸ‘‘ OPTIONS πŸ‘‘

  • -o file β€” write output to file
  • -d β€” increase debug level
  • -t templ β€” overrides TEMPLATE as templ
  • -tp prefix β€” 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]. not me rearranging the timeline 😭
  • -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.
  • -qtconf file β€” use file instead of looking for qt.conf
  • -cache file β€” use file as cache [makefile mode only]
  • -spec spec β€” 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]
🫢 heads up bestie: those last few are mode-locked. the [makefile mode only] ones only hit in makefile mode, and -nopwd is [project mode only]. respect the vibes.

πŸ’– 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. iconic behavior, honestly, thank you both πŸ™βœ¨


okay that's the whole page!! πŸ’œ The Qt Company Ltd. dropped this one on 2017-04-09, it's QMAKE(1) and that's the whole manual β€” go forth and generate some makefiles, bestie, you've got this πŸ¦‹πŸŽ€πŸ’…

πŸ“¦ where this page comes from