summaryrefslogtreecommitdiff
path: root/src/src.pro
blob: 7d3f7dad4434f68bcde6d77986a0b9b47c6ffce7 (plain)
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
TARGET = dbmodel
VERSION = 0.3

DESTDIR = ../

QT += xml svg
#CONFIG += debug

DEFINES += VERSION=\\\"$$VERSION\\\"

include(src.pri)
include(diagram/diagram.pri)
include(items/items.pri)
include(utils/utils.pri)
include(export/export.pri)

include(../updateqm.pri)

MOC_DIR = $$PWD/.build
OBJECTS_DIR = $$PWD/.build
UI_DIR = $$PWD/.build
RCC_DIR = $$PWD/.build

unix {
    isEmpty(PREFIX) {
        PREFIX = /usr/local
    }

    BINDIR = $$PREFIX/bin
    DATADIR = $$PREFIX/share

    INSTALLS += target man man-compress

    target.path = $$BINDIR

    man.path = $$DATADIR/man/man1
    man.files += ../data/dbmodel.1

    man-compress.path = $$DATADIR/man/man1
    man-compress.extra = "" "gzip -9 -f \$(INSTALL_ROOT)/$$DATADIR/man/man1/dbmodel.1" ""
    man-compress.depends = install_man
}

# It's required for windows correct include path.
# Dunno why...
win32 {
    INCLUDEPATH += .
}