Re: [CMake] pkg-config file format versus CMake packages

2018-05-25 Thread Paul Fultz II via CMake
> On May 25, 2018, at 8:07 AM, Brad King wrote: > > On 05/24/2018 07:39 PM, Paul Fultz II wrote: >>> On May 24, 2018, at 8:07 AM, Brad King wrote: >>> The `.pc` file format is too flat to lend itself well to representing >>> all the information we need. >> >> What do you mean? What informatio

Re: [CMake] problem with CMake not including library's path (with pkg-config)

2018-05-25 Thread Rolf Eike Beer
Am Freitag, 25. Mai 2018, 18:53:43 schrieb Francesco Abbate: > Hi, > > thank you for the help. > > As suggested by Andreas, AGG_LDFLAGS does what I think should be done > and it works for me. > > As for the IMPORTED_TARGET approach, I still need to explicitly call > target_include_directories()

[CMake] integrating cmake configured library with other GNU based build system?

2018-05-25 Thread Burlen Loring
Hi All, Can cmake generate .pc files? Can cmake generate .la files (gnu convenience libraries)? Cmake internally generates all the requisite info, how can it be accessed? I have to integrate a cmake based library into a GNUMake build. The project has a cmake config file

Re: [CMake] problem with CMake not including library's path (with pkg-config)

2018-05-25 Thread Francesco Abbate
Hi, thank you for the help. As suggested by Andreas, AGG_LDFLAGS does what I think should be done and it works for me. As for the IMPORTED_TARGET approach, I still need to explicitly call target_include_directories() and in addition the options given to the linker with PkgConfig::AGG seems to be

Re: [CMake] pkg-config file format versus CMake packages

2018-05-25 Thread Brad King
On 05/24/2018 07:39 PM, Paul Fultz II wrote: >> On May 24, 2018, at 8:07 AM, Brad King wrote: >> The `.pc` file format is too flat to lend itself well to representing >> all the information we need. > > What do you mean? What information can't be represented? Try running CMake's ExportImport te

Re: [CMake] problem with CMake not including library's path (with pkg-config)

2018-05-25 Thread Rolf Eike Beer
Am 2018-05-24 18:48, schrieb Francesco Abbate: Hi all, I stumbled in a problem with CMake. Everything is working fine except that, for two libraries that I locate with pkg-config, cmake does not include during linking the library's path (-L) which is given by pkg-config. Here an extract of the