Added build script of Debian
[qtrapids] / src / gui / gui.pro
index 8d105ec..3945159 100644 (file)
@@ -1,18 +1,39 @@
+include (../../includes.pri)
+include (../../buildconf.pri)
+
 SOURCES += DownloadView.cpp \
 MainWindow.cpp \
 SeedView.cpp \
- main.cpp
+ main.cpp \
+ PreferencesDialog.cpp
 HEADERS += DownloadView.h \
 MainWindow.h \
-SeedView.h
+SeedView.h \
+ PreferencesDialog.h
+
 TEMPLATE = app
 
 TARGET = qtrapids
 
-CONFIG -= release
+CONFIG += qtestlib
+
+DESTDIR = ../../bin
+
+INCLUDEPATH += ../engine \
+       ../plugins
+
+LIBS += -L../../bin \
+  -lqtbittorrent \
+  -L/home/vaatala/Projects/qtrapids/trunk/bin \
+  -L../engine
 
-CONFIG += debug \
- qtestlib
+QMAKE_LFLAGS_DEBUG += -L.
+TARGETDEPS += ../../bin/libqtbittorrent.so
 
-DESTDIR = ../../
+# Check build mode and print to console
+debug {
+  message( "DEBUG" )
+} else {
+  message( "RELEASE" )
+}