Meaning of each variable in the QT. Pro file

Source: Internet
Author: User
Tags qt designer

In QT Engineering

The meaning of each variable in the. Pro file:

HEADERS a C + + header file (. h) for the specified project.

SOURCES the C + + implementation file (. cpp) for the specified project.

FORMS specifies the. ui file generated by the Qt designer that needs to be processed by UIC.

RESOURCES specifies the. qrc file that needs to be processed by RCC.

Defines specifies pre-defined C + + preprocessing symbols.

INCLUDEPATH specifies the path to the global header file that the C + + compiler searches.

LIBS Specifies the library to which the project is linked. The library can be specified either by an absolute path or by using the-L and-l identifiers derived from Unix (for example,-l/usr/local/lib and-ldb_cxx).

CONFIG specifies various parameters for the project configuration and compilation.

QT Specifies the QT module to be used (the default is the core GUI, which corresponds to the Qtcore and Qtgui modules).

version specifies the build number of the target library.

TARGET Specifies the base file name of the executable file or library, which does not contain any extensions, prefixes, or version numbers (the default is the current directory name).

DESTDIR Specifies the directory where the executable file is placed (the default value is platform-dependent. For example, on Linux, refers to the current directory, or on Windows, the debug or Release subdirectory.

DLLDESTDIR Specifies the directory where the target library file is placed (the default path is the same as DESTDIR). The CONFIG variable is used to control all aspects of the compilation process. It supports the following parameters:

Debug is the executable file or library with debug information, linked to the debug version of the Qt library.

Release is the compilation of executables or libraries that do not have debug information, and a link to the release version of the Qt library. Debug is valid if both debug and release are specified.

Warn_off will close a large number of warnings. By default, the state of the warning is turned on.

QT refers to applications or libraries that use QT. This option is included by default.

DLL refers to the dynamic compilation library.

Staticlib refers to the static compilation library.

Plugin refers to compiling a plugin. Plug-ins are always dynamic libraries, so this parameter implies DLL parameters.

Console means that the application needs to write the console (using cout, Cerr, qwarning (), and so on).

App_bundle is only available for Mac OS X compilation, which means that the executable file is placed in the bundle, which is the default for Mac OS X.

The Lib_bundle is only available for Mac OS X compilation and refers to the library being placed in the frame.

Meaning of each variable in the QT. Pro file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.