From 0f2112dfee0cc75b3e65bf8551873f3cb234aea6 Mon Sep 17 00:00:00 2001 From: Peter Rekdal Sunde Date: Mon, 6 Jul 2015 15:02:44 +0200 Subject: [PATCH] Building tests should be optional. --- src/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 48e803e..9fdab0e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -31,6 +31,10 @@ if ( NOT DEFINED WITH_GPU_DETECTOR ) SET(WITH_GPU_DETECTOR OFF) ENDIF() +if ( NOT DEFINED WITH_TESTS ) + SET(WITH_TESTS ON) +ENDIF() + IF (WIN32 AND WITH_DAEMON) MESSAGE(WARNING "Skipping alprd daemon installation, as it is not supported in Windows.") SET(WITH_DAEMON OFF) @@ -104,8 +108,10 @@ IF (WITH_DAEMON) # Don't include misc utilities for Windows add_subdirectory(misc_utilities) ENDIF() - + +if (WITH_TESTS) add_subdirectory(tests) +ENDIF() add_subdirectory(openalpr) add_subdirectory(video)