Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-29 Thread suzuki toshiya
Dear Paul Fultz, Great, I will take a look. I'm glad to hear that you're also working on this issue! Regards, mpsuzuki On 3/30/2018 9:08 AM, P F wrote: The BCM(boost cmake modules) has `bcm_auto_pkgconfig` which will generate the pkgconfig file from a target, including the “Require”

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-29 Thread P F via CMake
The BCM(boost cmake modules) has `bcm_auto_pkgconfig` which will generate the pkgconfig file from a target, including the “Require” variable: http://bcm.readthedocs.io/en/latest/src/BCMPkgConfig.html#bcm-auto-pkgconfig

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread suzuki toshiya
Dear Nikos, Thank you for concrete suggestion! Nikos Chantziaras wrote: > Is there a reason why you can't generate your .pc file from a .pc.in > file using the configure_file() function? Yes, that's what I'm doing now :-)

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread Alan W. Irwin
On 2018-03-27 21:25+0300 Nikos Chantziaras wrote: 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. It is not an either-or

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread Nikos Chantziaras
On 27/03/18 21:35, Rolf Eike Beer wrote: Am Dienstag, 27. März 2018, 21:25:51 schrieb Nikos Chantziaras: 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,

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread Rolf Eike Beer
Am Dienstag, 27. März 2018, 21:25:51 schrieb Nikos Chantziaras: > 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. What

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread Nikos Chantziaras
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

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread Alan W. Irwin
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, ). So

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread Nikos Chantziaras
Is there a reason why you can't generate your .pc file from a .pc.in file using the configure_file() function? As in: configure_file( ${PROJECT_SOURCE_DIR}/mylibrary.pc.in ${PROJECT_BINARY_DIR}/mylibrary.pc @ONLY ) Your mylibrary.pc.in file would look something like this:

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread suzuki toshiya
Dear Craig, Thank you for prompt reply. But all 3 functions; pkg_get_variable(), pkg_check_modules(), pkg_search_module() are different from my purpose. in my impression, these functions are designed to retrieve the infos from/via pkg-config, not to generate the infos to be written in pkg-

Re: [CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread Craig Scott
You most likely want to use the FindPkgConfig module and also use the IMPORTED_TARGET option with the commands provided therein. On Tue, Mar 27, 2018 at 11:19 PM, suzuki toshiya wrote: > Hi all, > > I'm

[CMake] looking for 2 features to help pkg-config pc files

2018-03-27 Thread suzuki toshiya
Hi all, I'm looking for 2 features to generate pkg-config pc files. I already wrote something, but some experts advised that there would be many people trying to do such, and there might be existing solution. If such functions are already included in cmake's official modules, please let me know.