[CMake] small problem compiling a KDE4 project

Alexander Neundorf a.neundorf-work at gmx.net
Thu Jan 24 18:27:08 EST 2008


Hi,

On Wednesday 23 January 2008, Jeremy Webster wrote:
> I'm new to cmake and I'm trying to compile a small project in KDE but I
> get the error
>
> Unknown CMake command "kde4_add_ui_files"
>
> I think this command is in KDE4Macros.cmake, which is on my computer in
> /usr/lib/kde4/share/kde4/apps/cmake/modules/
>
> I've successfully  used cmake in a couple of other small projects, but
> they didn't have this command in the cmakelists file.
>
> Can someone give me a hint how to fix this?

I guess you did find_package(KDE4) ?
See:
http://techbase.kde.org/Development/Tutorials/CMake
and:
http://www.cmake.org/Wiki/CMake:How_To_Build_KDE4_Software
and the many examples in the KDE sources:
http://websvn.kde.org/trunk/KDE/

If you have more questions, please ask.

Alex


More information about the CMake mailing list