Link statedetection statically on Windows.

This commit is contained in:
Peter Rekdal Sunde
2015-08-11 09:54:01 +02:00
parent b145da1e85
commit 8af1b19a1a

View File

@@ -7,8 +7,11 @@ set(statedetector_source_files
state_detector_impl.cpp
)
add_library(statedetection SHARED ${statedetector_source_files} )
if (WIN32)
add_library(statedetection STATIC ${statedetector_source_files} )
ELSE()
add_library(statedetection SHARED ${statedetector_source_files} )
ENDIF()
set_target_properties(statedetection PROPERTIES SOVERSION ${OPENALPR_MAJOR_VERSION})