mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 19:52:50 +08:00
Updated CMakeLists shared library build for Linux
This commit is contained in:
@@ -35,11 +35,12 @@ add_subdirectory(support)
|
|||||||
add_library(openalpr-static STATIC ${lpr_source_files} )
|
add_library(openalpr-static STATIC ${lpr_source_files} )
|
||||||
add_library(openalpr SHARED ${lpr_source_files} )
|
add_library(openalpr SHARED ${lpr_source_files} )
|
||||||
|
|
||||||
TARGET_LINK_LIBRARIES(openalpr
|
IF (WIN32)
|
||||||
support
|
TARGET_LINK_LIBRARIES(openalpr
|
||||||
${OpenCV_LIBS}
|
support
|
||||||
${Tesseract_LIBS}
|
${OpenCV_LIBS}
|
||||||
)
|
${Tesseract_LIBS}
|
||||||
|
)
|
||||||
|
ENDIF()
|
||||||
# Add definition for default runtime dir
|
# Add definition for default runtime dir
|
||||||
add_definitions(-DDEFAULT_RUNTIME_DIR="${CMAKE_SOURCE_DIR}/../runtime_data/")
|
add_definitions(-DDEFAULT_RUNTIME_DIR="${CMAKE_SOURCE_DIR}/../runtime_data/")
|
Reference in New Issue
Block a user