2015-09-06 05:47:32 +08:00
|
|
|
# ===================================================================================
|
|
|
|
# The Tesseract CMake configuration file
|
|
|
|
#
|
|
|
|
# ** File generated automatically, do not modify **
|
|
|
|
#
|
|
|
|
# Usage from an external project:
|
|
|
|
# In your CMakeLists.txt, add these lines:
|
|
|
|
#
|
|
|
|
# find_package(Tesseract REQUIRED)
|
2020-10-08 05:47:48 +08:00
|
|
|
# target_link_libraries(MY_TARGET_NAME Tesseract::Tesseract)
|
2015-09-06 05:47:32 +08:00
|
|
|
#
|
|
|
|
# This file will define the following variables:
|
|
|
|
# - Tesseract_LIBRARIES : The list of all imported targets for OpenCV modules.
|
|
|
|
# - Tesseract_INCLUDE_DIRS : The Tesseract include directories.
|
|
|
|
#
|
|
|
|
# ===================================================================================
|
|
|
|
|
|
|
|
include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake)
|
|
|
|
|
2018-11-09 04:37:47 +08:00
|
|
|
find_package(Leptonica REQUIRED)
|
|
|
|
|
2020-10-08 05:47:48 +08:00
|
|
|
@PACKAGE_INIT@
|
2015-09-06 05:47:32 +08:00
|
|
|
|
2020-10-08 05:47:48 +08:00
|
|
|
set_and_check(Tesseract_INCLUDE_DIR "@PACKAGE_INCLUDE_DIR@")
|
|
|
|
set(Tesseract_LIBRARIES libtesseract)
|
2015-09-06 05:47:32 +08:00
|
|
|
|
2020-10-08 05:47:48 +08:00
|
|
|
if(Tesseract_FOUND AND NOT TARGET Tesseract::Tesseract)
|
|
|
|
add_library(Tesseract::Tesseract UNKNOWN IMPORTED)
|
|
|
|
set_target_properties(Tesseract::Tesseract PROPERTIES
|
|
|
|
IMPORTED_LOCATION ${Tesseract_LIBRARIES}
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${Tesseract_INCLUDE_DIR}"
|
|
|
|
)
|
|
|
|
endif()
|
2015-09-06 05:47:32 +08:00
|
|
|
|
2020-10-08 05:47:48 +08:00
|
|
|
check_required_components(Tesseract)
|