这需要创建CMakeLists.txt,然后运行cmake .创建Makefile,然后运行make使用makefile构建。这将正确地告诉...
The variableTesseract_INCLUDE_DIRis not set ifpkg_check_modulesis called in FindTesseract.cmake. UsingTesseract_INCLUDE_DIRSwill work in both cases, also whenpkg_check_modulesis not used (seehttps://github.com/opencv/opencv_contrib/blob/master/modules/text/cmake/FindTesseract.cmake). Here is ...
target_include_directories(demo PUBLIC ${OpenCV_INCLUDE_DIRS}) if(MSVC AND NOT CMAKE_VERSION VERSION_LESS "3.15") set_property(TARGET demo PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" ) endif() endif()