summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-18 22:51:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-18 22:53:01 +0300
commit40de3bee0278d6584561a827123bc342934adccb (patch)
tree460ba68f29ec25377ef1971989c4c46e507ea3da /src/Makefile.am
parentdffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff)
downloadmv-40de3bee0278d6584561a827123bc342934adccb.tar.gz
mv-40de3bee0278d6584561a827123bc342934adccb.tar.bz2
mv-40de3bee0278d6584561a827123bc342934adccb.tar.xz
mv-40de3bee0278d6584561a827123bc342934adccb.zip
Add support for additional unit test library doctest.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 7045e80b5..5f52357ad 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1952,6 +1952,12 @@ endif
manaplustests_CXXFLAGS = ${manaplus_CXXFLAGS} \
-DUNITTESTS
manaplustests_LDFLAGS =
+if ENABLE_UNITTESTS_CATCH
+manaplustests_CXXFLAGS += -DUNITTESTS_CATCH
+endif
+if ENABLE_UNITTESTS_DOCTEST
+manaplustests_CXXFLAGS += -DUNITTESTS_DOCTEST
+endif
if ENABLE_PUGIXML
manaplustests_CXXFLAGS += -DENABLE_PUGIXML
endif
@@ -1987,7 +1993,6 @@ manaplustests_CXXFLAGS += -DOPENGLERRORS
endif
manaplustests_SOURCES = ${SRC} \
- test/catch.hpp \
test/unittests.h \
enums/render/mockdrawtype.h \
render/mockdrawitem.h \
@@ -1997,6 +2002,15 @@ manaplustests_SOURCES = ${SRC} \
utils/dumplibs_unittest.cc \
utils/checkutils_unittest.cc
+if ENABLE_UNITTESTS_CATCH
+manaplustests_SOURCES += \
+ test/catch.hpp
+endif
+if ENABLE_UNITTESTS_DOCTEST
+manaplustests_SOURCES += \
+ test/doctest.h
+endif
+
if MINGW
manaplustests_SOURCES += manaplus.rc
manaplustests_LDFLAGS += -mconsole