I think the problem is only when using MinGW, but anyway, how can I solve this problem without including the "*.moc" at the end of the file?
Thanks in advance
I think the problem is only when using MinGW, but anyway, how can I solve this problem without including the "*.moc" at the end of the file?
Thanks in advance
http://qtnode.net/wiki/Qt4_with_cmake :
If you don't use the #include "header.moc" convention, you can use the QT4_WRAP_CPP macro. This generates a list of moc_xxxx.cxx files to be generated. You pass in the list of headers to be moc'ed, and get back a list of source files to add to your build target. This is similar to how qmake works with Qt4
The problem is, that I only have a "main.cpp" file, it doesn't use any header files.
Bookmarks