From kde-buildsystem Mon Jan 16 14:08:28 2006 From: brad.king () kitware ! com (Brad King) Date: Mon, 16 Jan 2006 14:08:28 +0000 To: kde-buildsystem Subject: ANNOUNCE: experimental support for building kdelibs 4 with cmake Message-Id: <43CBA8DC.4000308 () kitware ! com> X-MARC-Message: https://marc.info/?l=kde-buildsystem&m=116644617530654 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