mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Locate CMake config files without subfolder
This commit is contained in:
parent
30e2516337
commit
8719498c19
@ -374,11 +374,11 @@ configure_file(
|
||||
include(CMakePackageConfigHelpers)
|
||||
configure_package_config_file(
|
||||
cmake/templates/TesseractConfig.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake/TesseractConfig.cmake
|
||||
INSTALL_DESTINATION lib/tesseract/cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake/tesseract/TesseractConfig.cmake
|
||||
INSTALL_DESTINATION lib/cmake/tesseract
|
||||
PATH_VARS INCLUDE_DIR)
|
||||
write_basic_package_version_file(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake/TesseractConfigVersion.cmake
|
||||
${CMAKE_CURRENT_BINARY_DIR}/cmake/tesseract/TesseractConfigVersion.cmake
|
||||
VERSION ${PACKAGE_VERSION}
|
||||
COMPATIBILITY SameMajorVersion)
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
include(CMakeFindDependencyMacro)
|
||||
find_dependency(Leptonica)
|
||||
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/tesseract/TesseractTargets.cmake)
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/TesseractTargets.cmake)
|
||||
|
||||
@PACKAGE_INIT@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user