mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 15:06:50 +08:00
Add support for configuring if you want to enable build support for GPU detector.
This commit is contained in:
@@ -27,6 +27,10 @@ IF ( NOT DEFINED WITH_DAEMON )
|
||||
SET(WITH_DAEMON ON)
|
||||
ENDIF()
|
||||
|
||||
if ( NOT DEFINED WITH_GPU_DETECTOR )
|
||||
SET(WITH_GPU_DETECTOR OFF)
|
||||
ENDIF()
|
||||
|
||||
IF (WIN32 AND WITH_DAEMON)
|
||||
MESSAGE(WARNING "Skipping alprd daemon installation, as it is not supported in Windows.")
|
||||
SET(WITH_DAEMON OFF)
|
||||
|
@@ -61,7 +61,9 @@ install (TARGETS openalpr-static DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
install (TARGETS openalpr DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
||||
|
||||
# Compile GPU detector
|
||||
#add_definitions(-DCOMPILE_GPU=1)
|
||||
IF ( WITH_GPU_DETECTOR )
|
||||
add_definitions(-DCOMPILE_GPU=1)
|
||||
ENDIF()
|
||||
|
||||
# Add definition for default config file
|
||||
add_definitions(-DDEFAULT_CONFIG_FILE="${CMAKE_INSTALL_SYSCONFDIR}/openalpr/openalpr.conf")
|
||||
|
Reference in New Issue
Block a user