[CMake] looking for 2 features to help pkg-config pc files
Nikos Chantziaras
realnc at gmail.com
Tue Mar 27 14:25:51 EDT 2018
Note that one downside to that is that people not using CMake cannot
make use of that. They still need a pkgconfig file. So in a sense,
pkgconfig is the common denominator everybody can use, regardless of
build system.
On 27/03/18 20:36, Alan W. Irwin wrote:
> On 2018-03-27 21:19+0900 suzuki toshiya wrote:
>
>> Hi all,
>>
>> I'm looking for 2 features to generate pkg-config pc files.
>
> Hi Suzuki:
>
> CMake has its own native way of generating package information
> describing software (see,
> <https://cmake.org/cmake/help/git-stage/manual/cmake-packages.7.html>).
> So it would be worthwhile in its own right for you to generate a
> native CMake package for your software to benefit those of your users
> who want to use find_package in Config mode to obtain all the
> information they need about your software. In fact, it has been
> argued (see
> <https://cmake.org/cmake/help/git-stage/manual/cmake-packages.7.html>)
> that native CMake packages are so useful that it is worthwhile
> generating those for external projects that don't produce them for
> themselves.
>
> Now moving to your question, once a native CMake package describing
> software has been implemented, then it should be possible, in
> principle, to translate the information in that native package into
> pkg-config form (for the benefit of those who prefer pkg-config to
> find_package in Config mode to obtain information about a software
> package). So this is an indirect way of fulfilling your need to
> generate information about your software in pkg-config form, but the
> very large side benefit is you also provide that information in native
> CMake package form.
>
> Alan
> __________________________
> Alan W. Irwin
>
> Astronomical research affiliation with Department of Physics and Astronomy,
> University of Victoria (astrowww.phys.uvic.ca).
>
> Programming affiliations with the FreeEOS equation-of-state
> implementation for stellar interiors (freeeos.sf.net); the Time
> Ephemerides project (timeephem.sf.net); PLplot scientific plotting
> software package (plplot.sf.net); the libLASi project
> (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
> and the Linux Brochure Project (lbproject.sf.net).
> __________________________
>
> Linux-powered Science
> __________________________
More information about the CMake
mailing list