summaryrefslogtreecommitdiff
path: root/src/unittests/unittests.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-25 20:02:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-25 20:02:28 +0300
commit7bbd39e0da04cee932f4afe6a4c85ebb78f39a81 (patch)
tree220a6f44ff80ed1d5242ab469d91ce4a28e03f72 /src/unittests/unittests.h
parent880fa28099e828821378a9c83a7218ae5bfa3110 (diff)
downloadManaVerse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.tar.gz
ManaVerse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.tar.bz2
ManaVerse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.tar.xz
ManaVerse-7bbd39e0da04cee932f4afe6a4c85ebb78f39a81.zip
Add configure options for build with system catch and doctest.
Diffstat (limited to 'src/unittests/unittests.h')
-rw-r--r--src/unittests/unittests.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unittests/unittests.h b/src/unittests/unittests.h
index 672b2ca54..b0077cd70 100644
--- a/src/unittests/unittests.h
+++ b/src/unittests/unittests.h
@@ -24,7 +24,11 @@
#include "localconsts.h"
#ifdef UNITTESTS_CATCH
+#ifdef UNITTESTS_EMBED
#include "unittests/catch.hpp"
+#else // UNITTESTS_EMBED
+#include <catch.hpp>
+#endif // UNITTESTS_EMBED
#endif // UNITTESTS_CATCH
#ifdef UNITTESTS_DOCTEST
@@ -41,7 +45,11 @@
PRAGMA5(GCC diagnostic push)
PRAGMA5(GCC diagnostic ignored "-Wsuggest-override")
+#ifdef UNITTESTS_EMBED
#include "unittests/doctest.h"
+#else // UNITTESTS_EMBED
+#include <doctest/doctest.h>
+#endif // UNITTESTS_EMBED
PRAGMA5(GCC diagnostic pop)
#undef TEST_CASE