Building tests should be optional.

This commit is contained in:
Peter Rekdal Sunde
2015-07-06 15:02:44 +02:00
parent 87ba3bd91a
commit 0f2112dfee

View File

@@ -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)
@@ -105,7 +109,9 @@ IF (WITH_DAEMON)
add_subdirectory(misc_utilities)
ENDIF()
if (WITH_TESTS)
add_subdirectory(tests)
ENDIF()
add_subdirectory(openalpr)
add_subdirectory(video)