From 9d9afa37fbc41f23752abd36adf2af90d4f275d8 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Wed, 30 Apr 2014 22:20:08 -0400 Subject: [PATCH] Updated CMakeLists shared library build for Linux --- src/openalpr/CMakeLists.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/openalpr/CMakeLists.txt b/src/openalpr/CMakeLists.txt index 5041ff6..2b5f0c7 100644 --- a/src/openalpr/CMakeLists.txt +++ b/src/openalpr/CMakeLists.txt @@ -35,11 +35,12 @@ add_subdirectory(support) add_library(openalpr-static STATIC ${lpr_source_files} ) add_library(openalpr SHARED ${lpr_source_files} ) -TARGET_LINK_LIBRARIES(openalpr - support - ${OpenCV_LIBS} - ${Tesseract_LIBS} - ) - +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/") \ No newline at end of file