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