Added CONFIG+=debug and CONFIG+=release support
This commit is contained in:
parent
6de5c4751f
commit
31a21fdf9f
4 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,7 @@ CONFIG -= app_bundle
|
||||||
|
|
||||||
INCLUDEPATH += ../../3rdparty/boost
|
INCLUDEPATH += ../../3rdparty/boost
|
||||||
|
|
||||||
|
include (../../defines.pri)
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
main.cpp \
|
main.cpp \
|
||||||
|
|
7
defines.pri
Normal file
7
defines.pri
Normal 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
2
env/env.pro
vendored
|
@ -5,6 +5,8 @@ CONFIG -= app_bundle
|
||||||
|
|
||||||
INCLUDEPATH += ../3rdparty/boost ../3rdparty/googletest/include
|
INCLUDEPATH += ../3rdparty/boost ../3rdparty/googletest/include
|
||||||
|
|
||||||
|
include(../defines.pri)
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
assert.hpp \
|
assert.hpp \
|
||||||
condition.hpp \
|
condition.hpp \
|
||||||
|
|
|
@ -5,6 +5,8 @@ CONFIG -= app_bundle
|
||||||
|
|
||||||
INCLUDEPATH += ../3rdparty/boost ../3rdparty/googletest/include
|
INCLUDEPATH += ../3rdparty/boost ../3rdparty/googletest/include
|
||||||
|
|
||||||
|
include (../defines.pri)
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
article_info.hpp \
|
article_info.hpp \
|
||||||
distance.hpp \
|
distance.hpp \
|
||||||
|
|
Reference in a new issue