Add KDE notification support.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-qt.pro
1 CONFIG+=                qt gui c++11 debug
2 QMAKE_CXXFLAGS+=        -std=c++11 -O2
3
4 HEADERS=                dhcpcd-qt.h dhcpcd-about.h dhcpcd-preferences.h \
5                         dhcpcd-wi.h dhcpcd-ifmenu.h dhcpcd-ssidmenu.h \
6                         dhcpcd-ipv4validator.h
7 SOURCES=                main.cpp dhcpcd-qt.cpp dhcpcd-about.cpp \
8                         dhcpcd-preferences.cpp dhcpcd-wi.cpp \
9                         dhcpcd-ifmenu.cpp dhcpcd-ssidmenu.cpp \
10                         dhcpcd-ipv4validator.cpp
11
12 INCLUDEPATH+=           ../../
13 INCLUDEPATH+=           ../libdhcpcd/
14
15 LIBS+=                  -L../libdhcpcd ../libdhcpcd/libdhcpcd.a
16
17 has_libintl {
18         LIBS +=         -lintl
19 }
20
21 has_libkdeui {
22         LIBS+=          -lkdeui
23         DEFINES+=       NOTIFY
24         INSTALLS+=      notifyrc
25 }
26
27 QMAKE_CLEAN+=           ${TARGET}
28
29 isEmpty(PREFIX) {
30         PREFIX=         /usr/local
31 }
32 isEmpty(SYSCONFDIR) {
33         SYSCONFDIR=     $$PREFIX/etc
34 }
35 isEmpty(MANDIR) {
36         MANDIR=         $$PREFIX/share/man
37 }
38
39 target.path=            $$PREFIX/bin
40
41 man8.path=              $$MANDIR/man8
42 man8.files=             dhcpcd-qt.8
43
44 desktop.path=           $$PREFIX/share/applications
45 desktop.files=          dhcpcd-qt.desktop
46
47 autostart.path=         $$SYSCONFDIR/xdg/autostart
48 autostart.files=        dhcpcd-qt.desktop
49
50 notifyrc.path=          $$PREFIX/share/apps/dhcpcd-qt
51 notifyrc.files=         dhcpcd-qt.notifyrc
52
53 INSTALLS+=              target man8 desktop autostart