Thanks for the suggestion.

C

On Wed, Jul 29, 2009 at 9:29 AM, David Jarvie <djarvie@kde.org> wrote:
On Tue, July 28, 2009 9:41 pm, Michael Leupold wrote:
> Charles Abela wrote:
>
>> Hi I have found this good article : http://www.sebruiz.net/359
>> about how to make use of QTCreator to debug KDE projects. I am of the
>> conviction that to build a KDE project one needs to access the relevant
>> CMakeLists.txt and then run cmake. However for some reason I am getting
>> errors when cmake is run. I am trying to build a project for the
>> FolderView applet. I am accessing its CMakeLists.txt from within
>> QtCreator
>> and calling cmake. This is the error I am getting:
>>
>>  CMake Error at CMakeLists.txt:10 (macro_optional_find_package):
>>
>> Unknown CMake command "macro_optional_find_package".
>
> Does plain cmake without QtCreator run fine? If that's the first error, I
> reckon MacroOptionalFindPackage.cmake doesn't get included.

Is the applet's CMakeLists.txt which you are using just copied from SVN?
The build system in SVN is set up so that you have to run the top level
CMakeLists.txt, which sets up various cmake variables which the lower
level CMakeLists.txt need. So trying to run a lower level CMakeLists.txt
by itself won't work without modifying it.

--
David Jarvie.
KDE developer.
KAlarm author & maintainer.
http://www.astrojar.org.uk/kalarm