cmake and tesseract, how to link using cmake
问题 I'm trying to build my application against tesseract, which i have installed through brew (working on mac os x). While i can compile my application without problem using g++ and pkg-config, i'm not sure how to do the same with cmake. I tried FIND_PACKAGE tesseract REQUIRED but it can't seem to find it. Does anyone have a sample CMakeLists.txt ? Appreciate the help. 回答1: It seems the only (or the easiest) way to use tesseract in your project with CMake is to download tesseract sources (from