OpenCV is again an optional dependency

This commit is contained in:
Brenno
2021-04-15 22:05:35 -03:00
parent 77aa418353
commit 2c9d2f2a32
7 changed files with 20 additions and 7 deletions

View File

@@ -35,7 +35,9 @@
// Prevent name clashes with juce::UnitTest
#define DONT_SET_USING_JUCE_NAMESPACE 1
#include "KeyFrame.h"
#ifdef USE_OPENCV
#include "TrackedObjectBBox.h"
#endif
#include "Exceptions.h"
#include "Coordinate.h"
#include "Fraction.h"
@@ -519,7 +521,7 @@ TEST(Point_Vector_Constructor)
}; // SUITE
#ifdef USE_OPENCV
TEST(TrackedObjectBBox_init_test) {
TrackedObjectBBox kfb;
@@ -704,4 +706,5 @@ TEST(GetBoxValues_test){
CHECK_EQUAL(20.0, boxValues["w"]);
CHECK_EQUAL(20.0, boxValues["h"]);
CHECK_EQUAL(30.0, boxValues["ang"]);
}
}
#endif