mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 14:10:53 +08:00
Cleaned build list for Windows Tesseract
This commit is contained in:
@@ -13,8 +13,8 @@ add_definitions( -DOPENALPR_MAJOR_VERSION=${OPENALPR_MAJOR_VERSION})
|
||||
add_definitions( -DOPENALPR_MINOR_VERSION=${OPENALPR_MINOR_VERSION})
|
||||
add_definitions( -DOPENALPR_PATCH_VERSION=${OPENALPR_PATCH_VERSION})
|
||||
|
||||
# Update these values if you are compiling either Tesseract or OpenCV yourself and it is not installed on the system.
|
||||
#SET(OpenCV_DIR "${CMAKE_SOURCE_DIR}/../libraries/opencv/")
|
||||
|
||||
SET(OpenCV_DIR "${CMAKE_SOURCE_DIR}/../libraries/opencv/")
|
||||
#SET(Tesseract_DIR "${CMAKE_SOURCE_DIR}/../libraries/tesseract-ocr")
|
||||
|
||||
include_directories(
|
||||
@@ -28,18 +28,13 @@ IF (WIN32)
|
||||
add_definitions( -DWINDOWS)
|
||||
add_definitions( -DNOMINMAX)
|
||||
|
||||
link_directories( ${Tesseract_DIR}/vs2008/LIB_Release/ )
|
||||
link_directories( ${Tesseract_DIR}/lib/ )
|
||||
include_directories(${Tesseract_DIR}/include/ )
|
||||
|
||||
# Extra linker dependencies for Windows
|
||||
SET(Tesseract_LIBS
|
||||
libtesseract302-static
|
||||
liblept168
|
||||
liblept168-static-mtdll
|
||||
libpng143-static-mtdll
|
||||
libjpeg8c-static-mtdll
|
||||
giflib416-static-mtdll
|
||||
libtiff394-static-mtdll
|
||||
zlib125-static-mtdll
|
||||
libtesseract303-static
|
||||
liblept170
|
||||
ws2_32.lib)
|
||||
ELSE()
|
||||
|
||||
@@ -63,7 +58,7 @@ set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall ")
|
||||
ADD_EXECUTABLE( alpr main.cpp )
|
||||
|
||||
TARGET_LINK_LIBRARIES(alpr
|
||||
openalpr
|
||||
openalpr-static
|
||||
support
|
||||
video
|
||||
${OpenCV_LIBS}
|
||||
@@ -90,9 +85,13 @@ ENDIF()
|
||||
|
||||
|
||||
add_subdirectory(openalpr)
|
||||
add_subdirectory(misc_utilities)
|
||||
add_subdirectory(video)
|
||||
|
||||
IF (NOT WIN32)
|
||||
# Don't include misc utilities for Windows
|
||||
add_subdirectory(misc_utilities)
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
install (TARGETS alpr DESTINATION bin)
|
||||
|
Reference in New Issue
Block a user