6a7de255baf88edcd94317a492a324a47f826750
[mdictionary] / trunk / src / base / base.pro
1 #-------------------------------------------------
2 #
3 # Project created by QtCreator 2010-08-03T08:54:27
4 #
5 #-------------------------------------------------
6
7 QT       += core gui 
8
9 TARGET = mdictionary
10 TEMPLATE = app
11
12
13 SOURCES += gui/main.cpp\
14         gui/MainWindow.cpp \
15     gui/SearchBarWidget.cpp \
16     gui/WordListWidget.cpp \
17     gui/TranslationWidget.cpp \
18     backbone/backbone.cpp
19
20 HEADERS  += gui/MainWindow.h \
21     gui/SearchBarWidget.h \
22     gui/WordListWidget.h \
23     gui/TranslationWidget.h \
24     backbone/backbone.h \
25     ../includes/translation.h \
26     ../includes/settings.h \
27     ../includes/CommonDictInterface.h
28
29 FORMS    += gui/MainWindow.ui
30
31 unix {
32   #VARIABLES
33   isEmpty(PREFIX) {
34     PREFIX = /usr
35   }
36   BINDIR = $$PREFIX/bin
37   DATADIR =$$PREFIX/share
38
39   DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
40
41   #MAKE INSTALL
42
43   INSTALLS += target desktop icon26 icon48 icon64
44
45   target.path =$$BINDIR
46
47   desktop.path = $$DATADIR/applications/hildon
48   desktop.files += ../../../data/$${TARGET}.desktop
49
50   icon26.path = $$DATADIR/icons/hicolor/26x26/apps
51   icon26.files += ../../../data/26x26/$${TARGET}.png
52
53   icon48.path = $$DATADIR/icons/hicolor/48x48/apps
54   icon48.files += ../../../data/48x48/$${TARGET}.png
55
56   icon64.path = $$DATADIR/icons/hicolor/64x64/apps
57   icon64.files += ../../../data/64x64/$${TARGET}.png
58 }