

#Qt creator 2.3.1 mac os
For example, on X11 and Mac OS X, the library name will be prefixed by lib on Windows, no prefix is added to the file name. The target file name for the library is platform-dependent. VERSION - The version number of the target library, for example, 2.3.1.The following option can also be defined to provide additional information about the library. The library is a plugin this also enables the dll option. When using the lib template, the following options can be added to the CONFIG variable to determine the type of library that is built: Option pro file to specify information about the library. When using this template, in addition to the system variables mentioned above for the app template the VERSION variable is supported. The lib template tells qmake to generate a Makefile that will build a library. Using "=" replaces the item's value with the new value, for example if we wrote DEFINES=QT_DLL, all other definitions would be deleted.

the template or the destination directory, we use "=" but for multi-valued items we use "+=" to add to the existing items of that type. For instance, an example project file might look like this: TEMPLATE = appįor items that are single valued, e.g. You only need to use the system variables that you have values for, for instance, if you do not have any extra INCLUDEPATHs then you do not need to specify any, qmake will add in the default ones needed. RES_FILE - Windows only: A resource file to be linked against for the application.RC_FILE - Windows only: A resource file for the application.def file to be linked against for the application. VPATH - The search path to find supplied files.DEPENDPATH - The dependency search path for the application.INCLUDEPATH - A list of any additional include paths needed for the application.DEFINES - A list of any additional pre-processor defines needed for the application.DESTDIR - The directory in which the target executable is placed.(The extension, if any, is added automatically). This defaults to the name of the project file. TARGET - Name of the executable for the application.YACCSOURCES - A list of all the yacc source files for the application.LEXSOURCES - A list of all the lex source files for the application.FORMS - A list of all the UI files (created using Qt Designer) for the application.SOURCES - A list of all the source files for the application.HEADERS - A list of all the header files for the application.pro file to specify information about your application. When using this template the following qmake system variables are recognized.

The application is a Windows GUI application.Īpp template only: the application is a Windows console application. With this template, the type of application can be specified by adding one of the following options to the CONFIG variable definition: Option The app template tells qmake to generate a Makefile that will build an application.
#Qt creator 2.3.1 for mac os x
Platform-specific variables are not described here we refer the reader to the Deploying Qt Applications document for information on issues such as building universal binaries for Mac OS X and handling Visual Studio manifest files. Although all kinds of projects use many of the same variables, each of them use project-specific variables to customize output files.
#Qt creator 2.3.1 how to
This chapter describes how to set up qmake project files for three common project types that are based on Qt.
