Only compile alprd on Linux

This commit is contained in:
Matt Hill
2014-07-03 14:24:20 -04:00
parent caf62ab02b
commit eaa82829c5

View File

@@ -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,16 +69,22 @@ 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
support
uuid
curl
log4cplus
${OpenCV_LIBS}
${Tesseract_LIBS}
)
ENDIF()
TARGET_LINK_LIBRARIES(alprd
openalpr
support
uuid
curl
log4cplus
${OpenCV_LIBS}
${Tesseract_LIBS}
)
add_subdirectory(openalpr)