summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
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