mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 19:52:50 +08:00
Tweaked CMakeLists for Windows support
This commit is contained in:
@@ -7,14 +7,16 @@ IF (WIN32)
|
|||||||
add_definitions( -DWINDOWS)
|
add_definitions( -DWINDOWS)
|
||||||
add_definitions( -DNOMINMAX)
|
add_definitions( -DNOMINMAX)
|
||||||
|
|
||||||
SET(OpenCV_DIR "C:\\projects\\alpr\\libraries\\opencv")
|
SET(OpenCV_DIR "C:\\projects\\openalpr\\libraries\\opencv")
|
||||||
SET(Tesseract_DIR "C:\\projects\\alpr\\libraries\\tesseract-3.02")
|
SET(Tesseract_DIR "C:\\projects\\openalpr\\libraries\\tesseract-ocr")
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${Tesseract_DIR}/include/tesseract
|
${Tesseract_DIR}/api
|
||||||
|
${Tesseract_DIR}/ccutil/
|
||||||
|
${Tesseract_DIR}/ccstruct/
|
||||||
|
${Tesseract_DIR}/ccmain/
|
||||||
)
|
)
|
||||||
link_directories( ${Tesseract_DIR}/lib/ )
|
link_directories( ${Tesseract_DIR}/vs2008/LIB_Release/ )
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|
||||||
SET(OpenCV_DIR "../libraries/opencv/")
|
SET(OpenCV_DIR "../libraries/opencv/")
|
||||||
@@ -43,13 +45,34 @@ include_directories(./openalpr )
|
|||||||
|
|
||||||
set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall ")
|
set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall ")
|
||||||
ADD_EXECUTABLE( alpr main.cpp )
|
ADD_EXECUTABLE( alpr main.cpp )
|
||||||
TARGET_LINK_LIBRARIES(alpr
|
|
||||||
|
|
||||||
|
IF (WIN32)
|
||||||
|
# Extra linker dependencies for Windows
|
||||||
|
TARGET_LINK_LIBRARIES(alpr
|
||||||
|
openalpr
|
||||||
|
support
|
||||||
|
${OpenCV_LIBS}
|
||||||
|
libtesseract302-static
|
||||||
|
liblept168
|
||||||
|
liblept168-static-mtdll
|
||||||
|
libpng143-static-mtdll
|
||||||
|
libjpeg8c-static-mtdll
|
||||||
|
giflib416-static-mtdll
|
||||||
|
libtiff394-static-mtdll
|
||||||
|
zlib125-static-mtdll
|
||||||
|
ws2_32.lib
|
||||||
|
)
|
||||||
|
|
||||||
|
ELSE()
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES(alpr
|
||||||
openalpr
|
openalpr
|
||||||
support
|
support
|
||||||
${OpenCV_LIBS}
|
${OpenCV_LIBS}
|
||||||
tesseract
|
tesseract
|
||||||
)
|
)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
add_subdirectory(openalpr)
|
add_subdirectory(openalpr)
|
||||||
add_subdirectory(misc_utilities)
|
add_subdirectory(misc_utilities)
|
||||||
|
Reference in New Issue
Block a user