<commit_before>project(src)


cmake_minimum_required (VERSION 2.6)

# Set the OpenALPR version in cmake, and also add it as a DEFINE for the code to access
SET(OPENALPR_MAJOR_VERSION "1")
SET(OPENALPR_MINOR_VERSION "1")
SET(OPENALPR_PATCH_VERSION "0")
SET(OPENALPR_VERSION ${OPENALPR_MAJOR_VERSION}.${OPENALPR_MINOR_VERSION}.${OPENALPR_PATCH_VERSION})

add_definitions( -DOPENALPR_MAJOR_VERSION=${OPENALPR_MAJOR_VERSION})
add_definitions( -DOPENALPR_MINOR_VERSION=${OPENALPR_MINOR_VERSION})
add_definitions( -DOPENALPR_PATCH_VERSION=${OPENALPR_PATCH_VERSION})


SET(OpenCV_DIR "${CMAKE_SOURCE_DIR}/../libraries/opencv/")
SET(Tesseract_DIR "${CMAKE_SOURCE_DIR}/../libraries/tesseract-ocr")

include_directories(
	${Tesseract_DIR}/api
	${Tesseract_DIR}/ccutil/
	${Tesseract_DIR}/ccstruct/
	${Tesseract_DIR}/ccmain/
)

IF (WIN32)
	add_definitions( -DWINDOWS)
	add_definitions( -DNOMINMAX)

	link_directories( ${Tesseract_DIR}/vs2008/LIB_Release/ )
	
	# Extra linker dependencies for Windows
	SET(Tesseract_LIBS 		
		libtesseract302-static
		liblept168
		liblept168-static-mtdll
		libpng143-static-mtdll
		libjpeg8c-static-mtdll
		giflib416-static-mtdll
		libtiff394-static-mtdll
		zlib125-static-mtdll
		ws2_32.lib)
ELSE()

	link_directories( ${Tesseract_DIR}/api/.libs/ )
	
	SET(Tesseract_LIBS tesseract)
ENDIF()


# Opencv Package
FIND_PACKAGE( OpenCV REQUIRED )
IF (${OpenCV_VERSION} VERSION_LESS 2.4.8)
	MESSAGE(FATAL_ERROR "OpenCV version is not compatible : ${OpenCV_VERSION}")
ENDIF()


include_directories(./openalpr ) 


set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall ")
ADD_EXECUTABLE( alpr  main.cpp  )



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

add_subdirectory(openalpr)
add_subdirectory(misc_utilities)




install (TARGETS alpr DESTINATION bin)
install (FILES ${CMAKE_SOURCE_DIR}/../doc/man/openalpr.1 DESTINATION share/man/man1 COMPONENT doc)
install (DIRECTORY ${CMAKE_SOURCE_DIR}/../runtime_data DESTINATION share/openalpr/)
install (FILES ${CMAKE_SOURCE_DIR}/../config/openalpr.conf DESTINATION /etc/openalpr/ COMPONENT config)



INCLUDE(CPack)<commit_msg>Updated CMakeLists to point to alpr man page<commit_after>project(src)


cmake_minimum_required (VERSION 2.6)

# Set the OpenALPR version in cmake, and also add it as a DEFINE for the code to access
SET(OPENALPR_MAJOR_VERSION "1")
SET(OPENALPR_MINOR_VERSION "1")
SET(OPENALPR_PATCH_VERSION "0")
SET(OPENALPR_VERSION ${OPENALPR_MAJOR_VERSION}.${OPENALPR_MINOR_VERSION}.${OPENALPR_PATCH_VERSION})

add_definitions( -DOPENALPR_MAJOR_VERSION=${OPENALPR_MAJOR_VERSION})
add_definitions( -DOPENALPR_MINOR_VERSION=${OPENALPR_MINOR_VERSION})
add_definitions( -DOPENALPR_PATCH_VERSION=${OPENALPR_PATCH_VERSION})


SET(OpenCV_DIR "${CMAKE_SOURCE_DIR}/../libraries/opencv/")
SET(Tesseract_DIR "${CMAKE_SOURCE_DIR}/../libraries/tesseract-ocr")

include_directories(
	${Tesseract_DIR}/api
	${Tesseract_DIR}/ccutil/
	${Tesseract_DIR}/ccstruct/
	${Tesseract_DIR}/ccmain/
)

IF (WIN32)
	add_definitions( -DWINDOWS)
	add_definitions( -DNOMINMAX)

	link_directories( ${Tesseract_DIR}/vs2008/LIB_Release/ )
	
	# Extra linker dependencies for Windows
	SET(Tesseract_LIBS 		
		libtesseract302-static
		liblept168
		liblept168-static-mtdll
		libpng143-static-mtdll
		libjpeg8c-static-mtdll
		giflib416-static-mtdll
		libtiff394-static-mtdll
		zlib125-static-mtdll
		ws2_32.lib)
ELSE()

	link_directories( ${Tesseract_DIR}/api/.libs/ )
	
	SET(Tesseract_LIBS tesseract)
ENDIF()


# Opencv Package
FIND_PACKAGE( OpenCV REQUIRED )
IF (${OpenCV_VERSION} VERSION_LESS 2.4.8)
	MESSAGE(FATAL_ERROR "OpenCV version is not compatible : ${OpenCV_VERSION}")
ENDIF()


include_directories(./openalpr ) 


set(CMAKE_CSS_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall ")
ADD_EXECUTABLE( alpr  main.cpp  )



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

add_subdirectory(openalpr)
add_subdirectory(misc_utilities)



install (TARGETS alpr DESTINATION bin)
install (FILES ${CMAKE_SOURCE_DIR}/../doc/man/alpr.1 DESTINATION share/man/man1 COMPONENT doc)
install (DIRECTORY ${CMAKE_SOURCE_DIR}/../runtime_data DESTINATION share/openalpr/)
install (FILES ${CMAKE_SOURCE_DIR}/../config/openalpr.conf DESTINATION /etc/openalpr/ COMPONENT config)



INCLUDE(CPack)
{'fraction_non_alphanumeric': 0.11224965067536097, 'fraction_numerical': 0.019096413600372612, 'mean_word_length': 6.267343485617597, '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': '306716', 'n_tokens_mistral': 1822, 'n_tokens_neox': 1704, 'n_words': 266}