[CMake] How to write CMakeLists.txt for Qt4 when Q_OBJECT in xxx.cpp file
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Aug 3 16:07:31 EDT 2010
On Saturday 31 July 2010, Clinton Stimpson wrote:
> If you put main.moc in add_executable() then you don't have to use the
> set_source_files_properties() to manually specify dependencies.
Yes, but main.moc is already #included in main.cpp so it cannout be added to
add_executable.
In KDE we are using automoc4, which implements qmake-compatible behaviour with
cmake:
http://techbase.kde.org/Development/Tools/Automoc4
http://websvn.kde.org/trunk/kdesupport/automoc/
Alex
More information about the CMake
mailing list