From af4f463f5ca0f3170067e8d094d34bc027ce918c Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 13 May 2021 21:19:16 +0100 Subject: [PATCH] Fix building tests Signed-off-by: falkTX --- dgl/src/OpenGL.cpp | 2 ++ tests/Demo.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dgl/src/OpenGL.cpp b/dgl/src/OpenGL.cpp index 8a5151c2..0beb3f45 100644 --- a/dgl/src/OpenGL.cpp +++ b/dgl/src/OpenGL.cpp @@ -113,6 +113,7 @@ void Rectangle::_draw(const bool outline) // ----------------------------------------------------------------------- // Possible template data types +#ifndef DPF_TEST_DEMO template class Line; template class Line; template class Line; @@ -140,6 +141,7 @@ template class Rectangle; template class Rectangle; template class Rectangle; template class Rectangle; +#endif // ----------------------------------------------------------------------- diff --git a/tests/Demo.cpp b/tests/Demo.cpp index 89d484f5..db2564a3 100644 --- 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"