tesseract/cmake/templates/TesseractConfig.cmake.in

40 lines
1.7 KiB
CMake
Raw Normal View History

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 06:16:01 +08:00
# target_link_libraries(MY_TARGET_NAME Tesseract::libtesseract)
2015-09-06 05:47:32 +08:00
#
# This file will define the following variables:
2021-09-20 00:34:24 +08:00
# - Tesseract_LIBRARIES : The list of all imported targets.
2015-09-06 05:47:32 +08:00
# - Tesseract_INCLUDE_DIRS : The Tesseract include directories.
2021-09-20 00:34:24 +08:00
# - Tesseract_LIBRARY_DIRS : The Tesseract library directories.
# - Tesseract_VERSION : The version of this Tesseract build: "@VERSION_PLAIN@"
# - Tesseract_VERSION_MAJOR : Major version part of Tesseract_VERSION: "@VERSION_MAJOR@"
# - Tesseract_VERSION_MINOR : Minor version part of Tesseract_VERSION: "@VERSION_MINOR@"
# - Tesseract_VERSION_PATCH : Patch version part of Tesseract_VERSION: "@VERSION_PATCH@"
2015-09-06 05:47:32 +08:00
#
# ===================================================================================
include(CMakeFindDependencyMacro)
find_dependency(Leptonica)
2015-09-06 05:47:32 +08:00
include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake)
2018-11-09 04:37:47 +08:00
2020-10-08 05:47:48 +08:00
@PACKAGE_INIT@
2015-09-06 05:47:32 +08:00
SET(Tesseract_VERSION @VERSION_PLAIN@)
SET(Tesseract_VERSION_MAJOR @VERSION_MAJOR@)
SET(Tesseract_VERSION_MINOR @VERSION_MINOR@)
SET(Tesseract_VERSION_PATCH @VERSION_PATCH@)
2020-12-12 00:25:08 +08:00
set_and_check(Tesseract_INCLUDE_DIRS "@PACKAGE_INCLUDE_DIR@")
2021-09-20 00:34:24 +08:00
set_and_check(Tesseract_LIBRARY_DIRS "@PACKAGE_LIBRARY_DIRS@")
set(Tesseract_LIBRARIES @tesseract_OUTPUT_NAME@)
2015-09-06 05:47:32 +08:00
2020-10-08 05:47:48 +08:00
check_required_components(Tesseract)