If an #include statement like #include "ui_foo.h" is found in foo.cpp, a foo.ui file is expected next to foo.cpp, and uic is run on the foo.ui file.
As the result I moved all ui files from dedicated "ui" dirs to the same folders with cpp files.
If UI component name is the same (like Ui::MyForm) with class name used in CPP file (U2::MyForm) there is a name conflict during compilation. To resolve this conflict we shuold use original component name that is always prefixed with Ui_ (like Ui_MyForm). The Ui:: form is just a typedef for the original one.
The patch was checked with original QMake based build on Linux & Windows .
This patch is the only way to proceed with CMake. If accepted I will prepare patches for all other modules 1 by 1.
This pull request adds U2Gui module to CMake toolchain.
There were 2 major problems found with CMake build for U2Gui:
As the result I moved all ui files from dedicated "ui" dirs to the same folders with cpp files.
The patch was checked with original QMake based build on Linux & Windows .
This patch is the only way to proceed with CMake. If accepted I will prepare patches for all other modules 1 by 1.