So I have a Q_OBJECT tagged class, which requires pregenerated .moc to be usable.
In my .qbs file, I have a CppApplication
item; this seems to be the wrong type of project, as qbs does not call moc ClassName.cpp
to generate moc's for me. What should be used instead/tweaked?
-
So I knew about Qt.core dependency, but it wasn't working on my crippled install of Qt; while I was trying to fix it, these facts came up:
- It was required to detect Qt toolchain (
qbs-setup-qt
) and callqbs-config-ui
- Qbs indeed stores the build rules in core.qbs, linked in via Qt/core dependency.
- it's possible to copy/paste the build rules into my own .qbs file and avoid external dependencies; I'm considering this as a dirty hack for deploying the code on really crippled build systems (now I have a word for Qt support on Gentoo).