Relative Content

Tag Archive for c++qtcmake

linker error after moving from QMake to CMake

I am trying to move from qmake to CMake. That being said, I have not much experience writing CMakeLists-files and I used the Python-script qmake2cmake to generate my initial CMakeLists.txt.
The code seems to compile just fine, however at the linking step I get an undefined reference:

QT with CMake – No such file with split .ui files

I have created a new CMake project with main window using QT Creator. I then added a new MyWidget (.ui + .h + .cpp) using Add to project: PromoteWidget.
I then added a widget to mainwindow.ui and promoted this widget to MyWidget.