Registered Member
|
Hi,
I just started to write my first KDE program und read some tutorials on techbase. My first practise was to use the KXmlGuiWindow class and the *.rc files for building my UI. But now I created a *.ui file with the Qt Designer. So I just followed the tutorial and added this line to my CMakeList.txt
Now my CMakeList.txt looks like this:
Pretty simple I think. Now my problem: If I add
to my source files, I get a "no such file or directory" error message, because ui_mainwidget.h was not generated. I don't now why CMake doesn't call uic to generate it. I get the generated code if I run uic manually. Do I have to add more lines to CMakeList.txt? Thank you for help! |
Registered Member
|
Hi Pegasus87,
I don't know if it'll be much helpful for you, but I think you have to add the following line below kde4_add_ui_files(testSRC src/mainwidget.ui), like this:
Besides, I think you have to put testSRC between ${}, because otherwise it won't be understood as a variable. You can use the one I have to build KVirusTotal as a nice example: https://gitorious.org/kvirustotal/kvirustotal/blobs/master/CMakeLists.txt I hope it helps! |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]