Description: make the tests build optional
Author: Rene Engelhard <rene@eller.debian.org>

---
Origin: vendor
Forwarded: no
Last-Update: 2022-03-23

--- libfixmath-0~20220222.orig/CMakeLists.txt
+++ libfixmath-0~20220222/CMakeLists.txt
@@ -11,14 +11,19 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
 set(CMAKE_CXX_FLAGS "-Wall -pedantic -Wextra -Werror=return-type")
 
 include(libfixmath/libfixmath.cmake)
-include(tests/tests.cmake)
+option(ENABLE_TESTS "Enable tests" ON)
+if (${ENABLE_TESTS})
+	include(tests/tests.cmake)
+endif()
 
 file(GLOB fixsingen-srcs fixsingen/*.c)
+if (${ENABLE_TESTS})
 file(GLOB fixtest-srcs fixtest/*.c fixtest/*.h)
 
 add_executable(fixtest ${fixtest-srcs})
 target_link_libraries(fixtest PRIVATE libfixmath m)
 target_include_directories(fixtest PRIVATE ${CMAKE_SOURCE_DIR})
+endif()
 
 add_executable(fixsingen ${fixsingen-srcs})
 target_link_libraries(fixsingen PRIVATE libfixmath m)
