commit af4f463f5ca0f3170067e8d094d34bc027ce918c
parent cd141a4367915915445a6f1e1161019b82bf4cff
Author: falkTX <falktx@falktx.com>
Date: Thu, 13 May 2021 21:18:49 +0100
Fix building tests
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dgl/src/OpenGL.cpp b/dgl/src/OpenGL.cpp
@@ -113,6 +113,7 @@ void Rectangle<T>::_draw(const bool outline)
// -----------------------------------------------------------------------
// Possible template data types
+#ifndef DPF_TEST_DEMO
template class Line<double>;
template class Line<float>;
template class Line<int>;
@@ -140,6 +141,7 @@ template class Rectangle<int>;
template class Rectangle<uint>;
template class Rectangle<short>;
template class Rectangle<ushort>;
+#endif
// -----------------------------------------------------------------------
diff --git a/tests/Demo.cpp b/tests/Demo.cpp
@@ -20,7 +20,7 @@
#include "tests.hpp"
-// #define DPF_TEST_POINT_CPP
+#define DPF_TEST_DEMO
#include "dgl/OpenGL.hpp"
#include "dgl/src/pugl.cpp"
#include "dgl/src/Application.cpp"