Mac OS/Brew: ccmake does not detect Qt5.15
If you installed qt5 via Brew, then you will get this error:
CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:15 (message): The imported target "Qt5::Core" references the file
Solution: change the qt5_dir to your proper. In my case it was
Change the location for other generated qt5 as well.
If you have Anaconda installed. Chances are it will pick up qt5.9 from conda, which is not supported. Uninstall qt5.9 from conda