From 25b879b3ee256792d919e41b9d8bc6d5b6836e37 Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Fri, 21 Feb 2020 13:50:05 +0200
Subject: [PATCH] BUILD_TESTS

---
 components/calibration/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/components/calibration/CMakeLists.txt b/components/calibration/CMakeLists.txt
index d486ab292..00faed0b6 100644
--- a/components/calibration/CMakeLists.txt
+++ b/components/calibration/CMakeLists.txt
@@ -19,4 +19,6 @@ target_include_directories(ftlcalibration
 
 target_link_libraries(ftlcalibration ftlcommon Threads::Threads ${OpenCV_LIBS} Eigen3::Eigen ceres)
 
-ADD_SUBDIRECTORY(test)
+if (BUILD_TESTS)
+	ADD_SUBDIRECTORY(test)
+endif()
-- 
GitLab