Could someone help me write a .pro file that by default compiles in both release and debug mode. In release mode. I don't want the debug message from qDebug() to get printed
I tried some thing like this. But to no avail
TEMPLATE = app
TARGET = Driver
DESTDIR = ../Bin
CONFIG += qt \
plugin \
warn_on \
debug_and_release \
build_all
UI_DIR = Build/Ui
MOC_DIR = Build/Moc
OBJECTS_DIR = Build/Obj
CONFIG( debug, debug|release ) {
CONFIG += console #show console in Windows platform
CONFIG -= app_bundle #console in MAC also
unix: TARGET = $$join( TARGET,,,_debug)
else: TARGET = $$join( TARGET,,d)
}
release {
DEFINES += QT_NO_DEBUG_OUTPUT
}
INCLUDEPATH = ../Common/Include \
../Plugins/Include
DEPENDPATH += ../Common/Include \
../Plugins/Include
#HEADERS +=
SOURCES += Src/main.cpp
TEMPLATE = app
TARGET = Driver
DESTDIR = ../Bin
CONFIG += qt \
plugin \
warn_on \
debug_and_release \
build_all
UI_DIR = Build/Ui
MOC_DIR = Build/Moc
OBJECTS_DIR = Build/Obj
CONFIG( debug, debug|release ) {
CONFIG += console #show console in Windows platform
CONFIG -= app_bundle #console in MAC also
unix: TARGET = $$join( TARGET,,,_debug)
else: TARGET = $$join( TARGET,,d)
}
release {
DEFINES += QT_NO_DEBUG_OUTPUT
}
INCLUDEPATH = ../Common/Include \
../Plugins/Include
DEPENDPATH += ../Common/Include \
../Plugins/Include
#HEADERS +=
SOURCES += Src/main.cpp
To copy to clipboard, switch view to plain text mode
Bookmarks