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 :-) https://github.com/mpsuzuki/poppler/compare/5e7aef9d...52ec0ec8#diff-af3

Re: [CMake] Listing all the include directories

2018-03-27 Thread Saad Khattak
Thanks Robert. Too bad that this something I cannot inspect. A list of include directories would be useful even with unexpanded generator expressions. CMake-server mode sounds like an interesting option. On Tue, Mar 27, 2018 at 10:47 AM Robert Maynard wrote: > In general your options are to loo

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 ha

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 t

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 it

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- config

Re: [CMake] Listing all the include directories

2018-03-27 Thread Robert Maynard
In general your options are to look at the command line or use cmake-server mode to query the code model. The full set of include directories is not known while configuring due to generator expressions expanding after the configure step. On Mon, Mar 26, 2018 at 9:45 PM, Saad Khattak wrote: > Hi,

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 looking for 2 features to gen

[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. O