mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 07:10:53 +08:00
Building tests should be optional.
This commit is contained in:
@@ -31,6 +31,10 @@ if ( NOT DEFINED WITH_GPU_DETECTOR )
|
|||||||
SET(WITH_GPU_DETECTOR OFF)
|
SET(WITH_GPU_DETECTOR OFF)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
if ( NOT DEFINED WITH_TESTS )
|
||||||
|
SET(WITH_TESTS ON)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF (WIN32 AND WITH_DAEMON)
|
IF (WIN32 AND WITH_DAEMON)
|
||||||
MESSAGE(WARNING "Skipping alprd daemon installation, as it is not supported in Windows.")
|
MESSAGE(WARNING "Skipping alprd daemon installation, as it is not supported in Windows.")
|
||||||
SET(WITH_DAEMON OFF)
|
SET(WITH_DAEMON OFF)
|
||||||
@@ -105,7 +109,9 @@ IF (WITH_DAEMON)
|
|||||||
add_subdirectory(misc_utilities)
|
add_subdirectory(misc_utilities)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
if (WITH_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
add_subdirectory(openalpr)
|
add_subdirectory(openalpr)
|
||||||
add_subdirectory(video)
|
add_subdirectory(video)
|
||||||
|
Reference in New Issue
Block a user