debug and release build is possible now on
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Sun, 29 Jan 2012 12:18:43 +0100
changeset 31 8a78deb099db
parent 30 00268973aae0
child 32 ec55981d8419
debug and release build is possible now on
.hgignore
igc.pro
--- a/.hgignore	Sun Jan 29 10:52:57 2012 +0100
+++ b/.hgignore	Sun Jan 29 12:18:43 2012 +0100
@@ -1,5 +1,6 @@
 syntax:glob
-.build/*
-Makefile
-igc
+.build-*/
+.build.{moc,ui}/
+Makefile{,.Debug,.Release}
+igc{,-debug}
 i18n/igc.de_DE.qm
--- a/igc.pro	Sun Jan 29 10:52:57 2012 +0100
+++ b/igc.pro	Sun Jan 29 12:18:43 2012 +0100
@@ -2,19 +2,31 @@
 # Automatically generated by qmake (2.01a) Sat Jan 21 23:39:20 2012
 ######################################################################
 
-CONFIG += debug precompile_header \
-	  qwt
+VERSION = 0.1.0
+
+CONFIG += debug_and_release precompile_header qwt 
+
 QT += webkit network
 QMAKE_EXTRA_TARGETS += doxy doc
 
 TEMPLATE = app
-TARGET = 
+
 DEPENDPATH += .
 INCLUDEPATH += .
 
-UI_DIR = .build/
-OBJECTS_DIR = .build/
-MOC_DIR = .build/
+# dirs for output and target
+UI_DIR = .build.ui/
+MOC_DIR = .build.moc/
+
+CONFIG(debug, debug|release) : {
+    TARGET = $$join(TARGET,,,-debug)
+    OBJECTS_DIR = .build-debug.o/
+}
+
+CONFIG(release, debug|release) : {
+    TARGET = $$TARGET
+    OBJECTS_DIR = .build-release.o/
+}
 
 TRANSLATIONS = i18n/igc.de_DE.ts
 CODECFORTR = UTF-8