Guide
The qmake tool helps simplify the build process for development projects across different platforms.
Function as follows:
- generates a Makefile based on the information in a project file
- contains additional features to support development with Qt, automatically including build rules for moc and uic
- generate projects for Microsoft Visual Studio without changing the project file
1. Overview
1.1. Describing a Project
Projects are described by the contents of project files (.pro)
Project files contain:
- comments
- variable declareations
- built-in functions
- control structures
- source files
- header files
- configuration options
2. Tutorial
This tutorials teaches you the basics of qmake
2.1. Starting Off Simple
- Create a directory tree like this
2.1
├── 2.1.pro
└── src
├── hello.cpp
├── hello.h
└── main.cpp
- use
SOURCESvariable to add the sources files to the project file (2.1.pro)
SOURCES +=