diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-18 22:53:01 +0300 |
commit | 40de3bee0278d6584561a827123bc342934adccb (patch) | |
tree | 460ba68f29ec25377ef1971989c4c46e507ea3da /src/Makefile.am | |
parent | dffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff) | |
download | mv-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.am | 16 |
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 |