Making writing Config.cmake files easier - updated example
Yury G. Kudryashov
urkud.urkud at gmail.com
Tue Jan 17 18:09:22 UTC 2012
Alexander Neundorf wrote:
> On Tuesday 17 January 2012, Yury G. Kudryashov wrote:
>> I have to know the DESTINATION at generation time to hardcode correct
>> relative paths.
>
> They can be calculated too, see the determine_installed_location() macro
> in the branch ImprovedConfigDotCMakeFile in git in kdeexamples.
determine_installed_location() needs to know @CMAKE_INSTALL_PREFIX@ and
@CMAKECONFIG_INSTALL_DIR@, so we need to ensure (or document?) that the same
directory used while writing MyLibConfig.cmake and installing it.
--
Yury G. Kudryashov,
mailto: urkud at mccme.ru
More information about the Kde-buildsystem
mailing list