forked from aeagean/QtKeyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QtKeyboard.pro
64 lines (47 loc) · 1.29 KB
/
QtKeyboard.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#**********************************************************
#Author: Qtjun
#Qt君公众号
#官网:www.qthub.com
#QQ群: 732271126
#Email: [email protected]
#**********************************************************
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = QtKeyboard
TEMPLATE = app
QMAKE_CXXFLAGS += -std=c++0x
CONFIG += c++11
win32: RC_ICONS += app.ico
INCLUDEPATH = Keyboard
SOURCES += main.cpp \
Keyboard/KeyButton.cpp \
Keyboard/Keyboard.cpp \
Keyboard/NumberKeyboard.cpp
HEADERS += \
Keyboard/AbstractKeyboard.h \
Keyboard/KeyButton.h \
Keyboard/Keyboard.h \
Keyboard/NumberKeyboard.h
RESOURCES += Resources/Image.qrc
# 可启用下列宏
# 启用汉字库
# ENABLED_CHINESE_LIB
# 启用词组汉字库
# ENABLED_CHINESE_PHRASE_LIB
# 启用谷歌汉字库(推荐使用)
# ENABLED_GOOGLE_CHINESE_LIB
# 启用文泉驿字体库
# ENABLED_WQY_FONT
DEFINES += ENABLED_GOOGLE_CHINESE_LIB
contains(DEFINES, ENABLED_CHINESE_LIB) {
RESOURCES += Resources/ChineseLib.qrc
}
contains(DEFINES, ENABLED_CHINESE_PHRASE_LIB) {
RESOURCES += Resources/ChinesePhraseLib.qrc
}
contains(DEFINES, ENABLED_GOOGLE_CHINESE_LIB) {
RESOURCES += Resources/GoogleChineseLib.qrc
}
contains(DEFINES, ENABLED_WQY_FONT) {
RESOURCES += Resources/Font.qrc
}