So i'm trying to build [the demo program for text detection](https://github.com/opencv/opencv_contrib/blob/master/modules/text/samples/textdetection.cpp), and CMake is complaining that "text.hpp" doesn't exist. I looked it up and turns out it only exists in [the optional modules](https://github.com/opencv/opencv_contrib). **How do I recompile OpenCV with these modules without blowing up everything?**

Edit: I'm using Ubuntu, and I compile programs using CMake from the command line.

Edit 2: I tried running `sudo make uninstall`, cloning both of the repos (main and modules) and then [following the instructions to build with those modules](https://docs.opencv.org/3.1.0/d7/d9f/tutorial_linux_install.html), but CMake still reports that text.hpp doesn't exist.