mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-11-03 11:40:49 +08:00
27 lines
582 B
CMake
27 lines
582 B
CMake
|
|
|
|
|
|
set(statedetector_source_files
|
|
state_detector.cpp
|
|
featurematcher.cpp
|
|
state_detector_impl.cpp
|
|
)
|
|
|
|
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})
|
|
|
|
TARGET_LINK_LIBRARIES(statedetection
|
|
${OpenCV_LIBS}
|
|
)
|
|
|
|
|
|
install (FILES state_detector.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
|
|
install (TARGETS statedetection DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
|
|
|
|