Files
cheatsheet-tldr/tldr/qmake
2025-10-17 00:19:47 +00:00

34 lines
562 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# qmake
> Generate Makefiles from Qt project files.
> More information: <https://doc.qt.io/qt-6/qmake-running.html>.
- Generate a `Makefile` from a project file in the current directory:
`qmake`
- Specify `Makefile` and project file locations:
`qmake -o {{path/to/Makefile}} {{path/to/project_file.pro}}`
- Generate a default project file:
`qmake -project`
- Compile a project:
`qmake && make`
- Enable debug mode:
`qmake -d`
- Display help:
`qmake -help`