Project files used in QT (. Pro files)

Source: Internet
Author: User

The first common method:
# Module Settings, generally set to app (generate application Program , Default), subdirs (generate MAKEFILE file to compile the sub-Folder specified by subdirs), lib (generate library file)
Template = app
# Specify the directory where the generated application is stored
Destdir + = ../bin
# Specify the name of the generated Application
Target = pksystem
# Add or remove the config configuration module. The default configuration is used. However, the debug and release folders are not generated except the debug_and_release module.
# Config + = release
Config-= debug_and_release
# Specify the UIC command to convert the. UI file to the directory where the UI _ *. h file is stored
Ui_dir + = forms
# Specify the RCC command to convert the. qrc file to the directory where qrc _ *. H files are stored
Rcc_dir + = ../tmp
# Specify the MOC command to convert the header file containing q_object to the storage directory of the standard. h file
Moc_dir + = ../tmp
# Specify the directory where the target file is stored
Objects_dir + = ../tmp
# Related paths for program Compilation
Dependpath + =. forms include qrc sources
# Header file inclusion path
Includepath + =.
# Information generated during qmake, $ {A} reads the string of variable A, $ (PATH) reads the path of the Environment Variable
# Message ($ (PATH ))
# Source file encoding
Codecforsrc = GBK
# Input
# Header files contained in the project
Headers + = include/painter. h
#. Uidesign file contained in the project
Forms + = forms/painter. UI
# Source files contained in the project
Sources + = sources/Main. cpp sources/painter. cpp
# Resource files contained in the project
Resources + = qrc/painter. qrc

The second common method is used to compile subfolders:
# Set the module as the sub-Folder Compilation Method
Template = subdirs
# Subfolder directory, available \ line feed
Subdirs = src1 \
Src2

 

Qt project file [*. Pro] instance:

I. project documents of QT 3.3.8

# The library files needed for compilation and their paths are described here.
Template = app
Language = C ++

Config + = QT warn_on release

Sqlite3_path =/usr/local/sqlite3-e

Includepath + = $ sqlite3_path/include

Libs + =-L $ sqlite3_path/lib-lsqlite3

Dependpath + = $ sqlite3_path/include

Iconv_path =/usr/local/iconv

Includepath + = $ iconv_path/include

Libs + =-L $ iconv_path/lib-liconv

Dependpath + =$ $ iconv_path/include

Headers + = check_out.h \
Comdo1.h \
Comrec1.h \
Help. h \
Input. h \
List. h \
Login. h \
Lvitem. h \
Main_1_1_h \
Message. h \
Messshow. h \
Order. h \
Order_dishes.h \
S_set.h \
Sending. h \
Table_control.h \
Tables. h \
Z_ B _t.h \
Date. h \
Main. h \
Extern. h \
Mag_send.h \
Py. h \
Level. h \
Set_flash.h \
Prog_my.h \
Drive. h \
Mode_my.h \
Ir_my.h \
Sound_my.h \
Spi_my.h \
Keyboard. h \
TS. h \
Config. h

Sources + = check_out.cpp \
Comdo1.cpp \
Comrec1.cpp \
Help. cpp \
Input. cpp \
List. cpp \
Login. cpp \
Main. cpp \
Main_1_1_cpp \
Message. cpp \
Messshow. cpp \
Order. cpp \
Order_dishes.cpp \
S_set.cpp \
Sending. cpp \
Table_control.cpp \
Tables. cpp \
Z_ B _t.cpp \
Date. cpp \
Lvitem. cpp \
Mag_send.cpp \
Level. cpp \
Set_flash.cpp \
Drive. cpp \
Keyboard. cpp \
TS. cpp \
Config. cpp

2. engineering documents of QT 4.5

######################################## ##############################
# Automatically generated by qmake (2.01a) Thu Oct 4 19:01:12 2007
######################################## ##############################

Template = app
Target =
Dependpath + =.
Includepath + =.

# Input
Sources + = Main. cpp
Sources + = glwidget. cpp
Sources + = mainwindow. cpp
Sources + = Bubble. cpp

Headers + = glwidget. h
Headers + = mainwindow. h
Headers + = Bubble. h

Resources + = texture. qrc
Qt + = OpenGL

# Install
Target. Path = $[qt_install_examples]/OpenGL/hellogl_es2
Sources. Files =$ $ sources $ headers $ resources $ forms hellogl_es2.pro
Sources. Path = $[qt_install_examples]/OpenGL/hellogl_es2
Instils + = target sources

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.