<commit_before>



set(lpr_source_files
 alpr.cpp
 alpr_impl.cpp
 config.cpp
 regiondetector.cpp
 licenseplatecandidate.cpp
 utility.cpp
 stateidentifier.cpp
 featurematcher.cpp
 ocr.cpp
 postprocess.cpp
 binarize_wolf.cpp
 platelines.cpp
 characterregion.cpp
 charactersegmenter.cpp
 platecorners.cpp
 colorfilter.cpp
 characteranalysis.cpp
 verticalhistogram.cpp
 trex.c
 cjson.c
 tinythread/tinythread.cpp
)

 

add_subdirectory(simpleini)
add_subdirectory(support)


add_library(openalpr-static 	STATIC ${lpr_source_files} )
add_library(openalpr 		SHARED ${lpr_source_files} )

set_target_properties(openalpr PROPERTIES SOVERSION ${OPENALPR_VERSION})

  TARGET_LINK_LIBRARIES(openalpr
	  support
	  ${OpenCV_LIBS}
	  ${Tesseract_LIBS}
    )


install (FILES alpr.h DESTINATION include)
install (TARGETS openalpr DESTINATION lib)

# Add definition for default runtime dir
#add_definitions(-DDEFAULT_RUNTIME_DIR="/usr/share/openalpr/runtime_data")
add_definitions(-DDEFAULT_CONFIG_FILE="/etc/openalpr/openalpr.conf")
<commit_msg>Just use major version for shared library rather than full version<commit_after>



set(lpr_source_files
 alpr.cpp
 alpr_impl.cpp
 config.cpp
 regiondetector.cpp
 licenseplatecandidate.cpp
 utility.cpp
 stateidentifier.cpp
 featurematcher.cpp
 ocr.cpp
 postprocess.cpp
 binarize_wolf.cpp
 platelines.cpp
 characterregion.cpp
 charactersegmenter.cpp
 platecorners.cpp
 colorfilter.cpp
 characteranalysis.cpp
 verticalhistogram.cpp
 trex.c
 cjson.c
 tinythread/tinythread.cpp
)

 

add_subdirectory(simpleini)
add_subdirectory(support)


add_library(openalpr-static 	STATIC ${lpr_source_files} )
add_library(openalpr 		SHARED ${lpr_source_files} )

set_target_properties(openalpr PROPERTIES SOVERSION ${OPENALPR_MAJOR_VERSION})

  TARGET_LINK_LIBRARIES(openalpr
	  support
	  ${OpenCV_LIBS}
	  ${Tesseract_LIBS}
    )


install (FILES alpr.h DESTINATION include)
install (TARGETS openalpr DESTINATION lib)

# Add definition for default runtime dir
#add_definitions(-DDEFAULT_RUNTIME_DIR="/usr/share/openalpr/runtime_data")
add_definitions(-DDEFAULT_CONFIG_FILE="/etc/openalpr/openalpr.conf")

{'fraction_non_alphanumeric': 0.07732201791607732, 'fraction_numerical': 0.0, 'mean_word_length': 5.867313915857605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3922139', 'n_tokens_mistral': 761, 'n_tokens_neox': 726, 'n_words': 124}