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