Added CONFIG+=debug and CONFIG+=release support

This commit is contained in:
Alex Zolotarev 2013-09-25 19:32:39 +02:00
parent 6de5c4751f
commit 31a21fdf9f
4 changed files with 12 additions and 0 deletions

View file

@ -5,6 +5,7 @@ CONFIG -= app_bundle
INCLUDEPATH += ../../3rdparty/boost
include (../../defines.pri)
SOURCES += \
main.cpp \

7
defines.pri Normal file
View file

@ -0,0 +1,7 @@
# Common file for all projects, to avoid copy-paste
CONFIG(release, debug|release) {
DEFINES *= RELEASE _RELEASE NDEBUG
} else {
DEFINES *= DEBUG _DEBUG
}

2
env/env.pro vendored
View file

@ -5,6 +5,8 @@ CONFIG -= app_bundle
INCLUDEPATH += ../3rdparty/boost ../3rdparty/googletest/include
include(../defines.pri)
HEADERS += \
assert.hpp \
condition.hpp \

View file

@ -5,6 +5,8 @@ CONFIG -= app_bundle
INCLUDEPATH += ../3rdparty/boost ../3rdparty/googletest/include
include (../defines.pri)
HEADERS += \
article_info.hpp \
distance.hpp \