I use Qt with CMake because CMake integrates with my team's work easier than my own. I have frequently encountered an error along the lines of
ui_*.h: No such file or directory
Usually when my project already has a ui_*.h
file to start with it will just modify that .h
file. I do use the below commands in my CMake file, so it should be wrapping my .ui
file with the appropriate ui_*.h
file.
qt4_wrap_ui (mainwindow mainwindow.ui)
target_linked_library (mainwindow ${QT_LIBRARIES})
But sometimes that doesn't work and I have to completely rebuild the entire ui_*.h
file. What am I doing wrong?