Template for projects based on modern CMake practices.
- https://tesseract-ocr.github.io/tessdoc/APIExample.html
- https://tesseract-ocr.github.io/tessdoc/Compiling.html
- https://github.com/SoftwareNetwork/sw/blob/master/test/integrations/CMakeLists.txt
- http://www.leptonica.org/ has to be included as well
- https://cmake.org/cmake/help/latest/guide/tutorial/index.html CMake Tutorial (especially testing is good)
- https://www.jetbrains.com/help/clion/cmakelists-txt-file.html
Components:
src
.libs/text_comparator
.libs/text_comparator/tests
.
See How to Use Modern CMake for an App + Lib Project for more information.
Create the build
directory and configure the build system:
cmake -B build # Or `cmake -D BUILD_TESTING=OFF -B build` to skip tests.
Build the project:
cmake --build build
Inspect the build
directory to find the application and the tests.
Optionally, run the tests with ctest
by typing:
cmake -E chdir build ctest