KDE Multimedia related CMake question

Alexander Neundorf neundorf at kde.org
Wed Oct 19 19:28:35 UTC 2011


On Wednesday 19 October 2011, Alexander Neundorf wrote:
...
> The Config.cmake files are more powerful than pkg-config pc-files, since
> they can carry any information by simply setting some variables, they
> support installing different builds of the same library (e.g. debug and
> release builds under Windows), and, they do not simply hardcode some
> compiler/linker flags and print them to stdout. Instead they just provide
> the information, and at build-time of the using project this information
> is turned into proper compiler/linker flags for the compiler which is used
> then (which may support other flags than those recorded in the pc-file).
> 
> 
> So, Find-modules and Config-files are two different kinds of files, with
> different purpose and which are handled differently.

What I forgot: I think the Config-files would be even better if they were in a 
format not specific to CMake, but e.g. some XML or JSON format.
Then they would be easier to use also by non-cmake project and also easier to 
generate by those.

Alex


More information about the Kde-buildsystem mailing list