--- CMakeLists.txt.orig	2022-01-18 08:15:22 UTC
+++ CMakeLists.txt
@@ -17,5 +17,7 @@ add_subdirectory(src)
 add_subdirectory(bindings)
 add_subdirectory(examples)
 enable_testing()
+if (BUILD_TESTING)
 add_subdirectory(tests)
+endif()
 add_subdirectory(doc)
