QT pro file CONFIG parameters

CONFIG variables
Configuration variables specify options to be used by the compiler and libraries to be linked against. Anything can be added to configuration variables,
but only the following options are recognized by qmake

Compiler type:
release : The application will be built in release mode. If "debug" is specified, it will be ignored
debug: the application will be built in debug mode.
warn_on: the compiler outputs as many warnings as possible, if "warn_off" is specified, it will be ignored
warn_off: the compiler outputs as few warnings as possible,

Application type:
qt : The application is a qt program, connected to the QT library
thread : The application is a multi-threaded application
x11: The application is an x11 application
windows: only used for app templates The application is a windows window application
console: only for app template application is a windows console application
dll: only for "lib" template, library is a shared library (dll)
staticlib: only for "lib" template, library is a static library
plugin: only For the "lib" template, the library is a plugin, this makes the dll option effective

CONFIG += qt thread debug Note: Use += instead of = here, otherwise you will not be able to use the type of the compiled Qt library.


Reprinted from: Qt pro file Config parameters

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325924699&siteId=291194637