2025-03-14 21:59:59 -06:00
|
|
|
# qmake
|
|
|
|
|
|
|
|
|
|
> Generate Makefiles from Qt project files.
|
|
|
|
|
> More information: <https://doc.qt.io/qt-6/qmake-manual.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`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`qmake -help`
|