First, run ./CompileUiFiles.sh. You will need Qt5+ and uic (the Qt UI compiler). Then do the following to use cmake:
./CompileUiFiles.sh
uic
cmake