我想在我的Windows CMake项目中使用tesseract。我安装了5.0和4.0版本的tesseract,它们都没有cmake文件夹,因此这行代码
find_package(Tesseract REQUIRED)
产生
CMake Error at CMakeLists.txt:14 (find_package):
By not providing "FindTesseract.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"Tesseract", but CMake did not find one.
Could not find a package configuration file provided by "Tesseract"
(requested version 4.0) with any of the following names:
TesseractConfig.cmake
tesseract-config.cmake
Add the installation prefix of "Tesseract" to CMAKE_PREFIX_PATH or set
"Tesseract_DIR" to a directory containing one of the above files. If
"Tesseract" provides a separate development package or SDK, be sure it has
been installed.
然而,在tesseract 5.0的安装文件夹中,有一个libtesseract-5.dll
和许多其他文件。我能将它们链接到我的cmake项目中吗?如果可以,应该如何操作?为什么安装文件夹中没有包含文件?我应该如何在我的项目中包含.h文件呢?
cmake
文件夹。你是如何安装tesseract的? - Kevinfind_package(Tesseract REQUIRED)
,只是为了看看它是否能找到它们。 - Guerlando OCs