Updated libs to use pthread on Linux

This commit is contained in:
Matt Hill
2014-08-19 21:17:06 -04:00
parent 884a6c3287
commit 2fdac5d745

View File

@@ -38,10 +38,14 @@ IF (WIN32)
add_definitions( -DNOMINMAX)
# Extra linker dependencies for Windows
SET (Tesseract_LIBRARIES
${Tesseract_LIBRARIES}
SET (Extra_LIBS
ws2_32.lib
)
ELSE()
SET (Extra_LIBS
pthread
)
ENDIF()
@@ -55,6 +59,7 @@ TARGET_LINK_LIBRARIES(alpr
video
${OpenCV_LIBS}
${Tesseract_LIBRARIES}
${Extra_LIBS}
)
# Compile the alprd library on Unix-based OS
@@ -70,6 +75,7 @@ IF (NOT WIN32)
log4cplus
${OpenCV_LIBS}
${Tesseract_LIBRARIES}
${Extra_LIBS}
)
# Don't include misc utilities for Windows