I am working on MITK an opensource medical imaging software. For my project I need to use a MITK model fit plugin. In order to install this plugin, I need to change the build of the MITK software using cmake. When I am trying to do this I keep encountering the following error.
Forcing MITK_USE_Qt5 to ON because of MITK_USE_CTK
CMake Error at CMakeLists.txt:310 (find_package):
Could not find a package configuration file provided by "Qt5" (requested
version 5.12.9) with any of the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
I am new to CMAKE and QT frame works, any help would be very much appreciated
I tried adding QT5 location using environment variable, cache variable, tried using command prompt to run the same codes. I have not had any success so far. I keep getting the same error. C:\Qt - this is my Qt location. For CMAKE_PREFIX_PATH - C:\Qt\6.5.2\mingw_64\bin. I found a MITK QT5 configuration in the MITK source folder = "C:\MITK-master\CMake\PackageDepends\MITK_Qt5_Config.cmake". I was not able to find qt5config.cmake file within qt5 location.