ANNOUNCE: experimental support for building kdelibs 4 with cmake

Brad King brad.king at kitware.com
Mon Jan 16 15:08:28 CET 2006


Jaison Lee wrote:
>>2) check out trunk/KDE/kdesdk/cmake
>>This directory contains the cmake scripts (in cmake language: "modules")
>>needed to compile KDE using cmake. Installation is still manual: copy the
>>files you find in kde3/, kde4/ and modules/ all directly into the system
>>cmake module directory (usually /usr/local/share/CMake/Modules/ ), not into
>>subdirectories !
> 
> For those of you unwilling to compromise write access or clutter your
> new cmake directory, I found that you can pass module paths via a
> semi-colon separated command line switch "-D". Like so:
> 
> cmake -DCMAKE_MODULE_PATH:PATH="/path/to/kdesdk/cmake/kde4/;/path/to/kdesdk/cmake/modules/"

This variable may be set at the top of the CMake code in KDE.  Something 
like

   SET(CMAKE_MODULE_PATH ${KDE3_SOURCE_DIR}/cmake)

will let the modules be loaded by INCLUDE commands without manual 
copying into the CMake installation.

-Brad


More information about the Kde-buildsystem mailing list