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

  1. Create a directory tree like this
2.1
├── 2.1.pro
└── src
    ├── hello.cpp
    ├── hello.h
    └── main.cpp
  1. use SOURCES variable to add the sources files to the project file (2.1.pro)
SOURCES +=

3. References

  1. qmake.7z
  2. qmake-manual.html
  3. qmake-overview.html
  4. qmake-tutorial.html
Copyright © gendloop 2024 all right reserved,powered by Gitbook该文件修订时间: 2026-02-10 13:48:53

results matching ""

    No results matching ""