mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 16:21:01 +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_MINOR_VERSION=${OPENALPR_MINOR_VERSION})
|
||||||
add_definitions( -DOPENALPR_PATCH_VERSION=${OPENALPR_PATCH_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")
|
#SET(Tesseract_DIR "${CMAKE_SOURCE_DIR}/../libraries/tesseract-ocr")
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
@@ -28,18 +28,13 @@ IF (WIN32)
|
|||||||
add_definitions( -DWINDOWS)
|
add_definitions( -DWINDOWS)
|
||||||
add_definitions( -DNOMINMAX)
|
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
|
# Extra linker dependencies for Windows
|
||||||
SET(Tesseract_LIBS
|
SET(Tesseract_LIBS
|
||||||
libtesseract302-static
|
libtesseract303-static
|
||||||
liblept168
|
liblept170
|
||||||
liblept168-static-mtdll
|
|
||||||
libpng143-static-mtdll
|
|
||||||
libjpeg8c-static-mtdll
|
|
||||||
giflib416-static-mtdll
|
|
||||||
libtiff394-static-mtdll
|
|
||||||
zlib125-static-mtdll
|
|
||||||
ws2_32.lib)
|
ws2_32.lib)
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|
||||||
@@ -63,7 +58,7 @@ set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall ")
|
|||||||
ADD_EXECUTABLE( alpr main.cpp )
|
ADD_EXECUTABLE( alpr main.cpp )
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(alpr
|
TARGET_LINK_LIBRARIES(alpr
|
||||||
openalpr
|
openalpr-static
|
||||||
support
|
support
|
||||||
video
|
video
|
||||||
${OpenCV_LIBS}
|
${OpenCV_LIBS}
|
||||||
@@ -90,9 +85,13 @@ ENDIF()
|
|||||||
|
|
||||||
|
|
||||||
add_subdirectory(openalpr)
|
add_subdirectory(openalpr)
|
||||||
add_subdirectory(misc_utilities)
|
|
||||||
add_subdirectory(video)
|
add_subdirectory(video)
|
||||||
|
|
||||||
|
IF (NOT WIN32)
|
||||||
|
# Don't include misc utilities for Windows
|
||||||
|
add_subdirectory(misc_utilities)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
install (TARGETS alpr DESTINATION bin)
|
install (TARGETS alpr DESTINATION bin)
|
||||||
|
Reference in New Issue
Block a user