mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 12:16:54 +08:00
Updated Linux compilation to link to OpenCV dynamically
This commit is contained in:
@@ -54,7 +54,7 @@ ADD_EXECUTABLE( alpr main.cpp )
|
||||
|
||||
|
||||
TARGET_LINK_LIBRARIES(alpr
|
||||
openalpr-static
|
||||
openalpr
|
||||
support
|
||||
${OpenCV_LIBS}
|
||||
${Tesseract_LIBS}
|
||||
|
@@ -35,12 +35,12 @@ add_subdirectory(support)
|
||||
add_library(openalpr-static STATIC ${lpr_source_files} )
|
||||
add_library(openalpr SHARED ${lpr_source_files} )
|
||||
|
||||
IF (WIN32)
|
||||
|
||||
TARGET_LINK_LIBRARIES(openalpr
|
||||
support
|
||||
${OpenCV_LIBS}
|
||||
${Tesseract_LIBS}
|
||||
)
|
||||
ENDIF()
|
||||
|
||||
# Add definition for default runtime dir
|
||||
add_definitions(-DDEFAULT_RUNTIME_DIR="${CMAKE_SOURCE_DIR}/../runtime_data/")
|
@@ -5,5 +5,6 @@ set(support_source_files
|
||||
timing.cpp
|
||||
)
|
||||
|
||||
add_library(support STATIC ${support_source_files})
|
||||
|
||||
add_library(support ${support_source_files})
|
||||
SET_TARGET_PROPERTIES( support PROPERTIES COMPILE_FLAGS -fPIC)
|
Reference in New Issue
Block a user