mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 04:30:51 +08:00
Only compile alprd on Linux
This commit is contained in:
@@ -62,9 +62,6 @@ include_directories(./openalpr )
|
||||
set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall ")
|
||||
ADD_EXECUTABLE( alpr main.cpp videobuffer.cpp )
|
||||
|
||||
ADD_EXECUTABLE( alprd daemon.cpp videobuffer.cpp daemon/beanstalk.c daemon/beanstalk.cc daemon/uuid.cpp )
|
||||
|
||||
|
||||
TARGET_LINK_LIBRARIES(alpr
|
||||
openalpr
|
||||
support
|
||||
@@ -72,6 +69,9 @@ TARGET_LINK_LIBRARIES(alpr
|
||||
${Tesseract_LIBS}
|
||||
)
|
||||
|
||||
# Compile the alprd library on Unix-based OS
|
||||
IF (NOT WIN32)
|
||||
ADD_EXECUTABLE( alprd daemon.cpp videobuffer.cpp daemon/beanstalk.c daemon/beanstalk.cc daemon/uuid.cpp )
|
||||
|
||||
TARGET_LINK_LIBRARIES(alprd
|
||||
openalpr
|
||||
@@ -82,6 +82,9 @@ TARGET_LINK_LIBRARIES(alprd
|
||||
${OpenCV_LIBS}
|
||||
${Tesseract_LIBS}
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
|
||||
add_subdirectory(openalpr)
|
||||
|
Reference in New Issue
Block a user