Here you can find an example of a simple user application that uses tesseract. CMAKE+SW Sw is a package manager for C++.