Making writing Config.cmake files easier - updated example

Alexander Neundorf neundorf at kde.org
Sun Jan 15 19:06:51 UTC 2012


Hi,

I create a new branch ImprovedConfigDotCMakeFile in the kdeexamples 
repository, used by the buildsystem/HowToInstallALibrary/ example:
http://quickgit.kde.org/?p=kdeexamples.git&a=tree&h=9c8e84b16079b35f15c50ea027bbc95bd387bf90&hb=6caa67be56231d3017859a26db2097b8c8826f4e&f=buildsystem/HowToInstallALibrary

It adds two new macros, currently called determine_installed_location() and 
set_absolute() which should help with that.
Once polished, they should go into cmake (2.8.8), so everybody can use them.

With these two new macros, the developer does not have to calculate the 
relative and absolute paths himself anymore, but can rely on their logic.
Also the CMakeLists.txt becomes a bit simpler, by removing the IMO most 
obscure part (the calculation of the relative install dir).

Comments ?

Alex



More information about the Kde-buildsystem mailing list