Updated Linux compilation to link to OpenCV dynamically

This commit is contained in:
Matt Hill
2014-05-08 09:58:01 -05:00
parent 4924ba300b
commit 22a8e3dc1e
3 changed files with 5 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ ADD_EXECUTABLE( alpr main.cpp )
TARGET_LINK_LIBRARIES(alpr
openalpr-static
openalpr
support
${OpenCV_LIBS}
${Tesseract_LIBS}

View File

@@ -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/")

View File

@@ -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)