make KDE4_AUTOMOC compatible to qmake

Manuel Klimek klimek at box4.net
Sun Jun 10 21:14:33 CEST 2007


Hi Alex,

> I think there is currently no way to tell cmake not to compile a file with a
> known extension. Even if this would be added for 2.4.7 or 2.4.8 it wouldn't
> help us since we require 2.4.5.

this bug:
http://www.cmake.org/Bug/bug.php?op=show&bugid=3908&pos=2
is fixed since 2.4.5.

So you should be able to simply set HEADER_FILE_ONLY on
the moc cpp files. In my company we use this method to generate
"final" builds where all files are included in one big cpp file and
the included cpp files are part of the project, too.

Cheers,
Manuel

-- 
http://klimek.box4.net


More information about the Kde-buildsystem mailing list