Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-28 Thread Alan W. Irwin
On 2015-04-28 11:57+0200 Nils Gladitz wrote: On 04/28/2015 11:43 AM, Alan W. Irwin wrote: @Nils: the origin of the code right below If COMPONENTS... is not clear. Is that code that should be supplied by a package creator or code that should be implemented by every find_package user? And if

Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-28 Thread Nils Gladitz
On 04/28/2015 01:20 AM, Alan W. Irwin wrote: On 2015-04-24 12:33-0700 Alan W. Irwin wrote: This should be a pretty common issue on Linux since it is quite typical there that downstream packaging splits up binary results into different packages. Therefore, I assume there is a CMake solution to

Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-28 Thread Nils Gladitz
On 04/28/2015 11:57 AM, Nils Gladitz wrote: install(TARGETS plplot1 EXPORT export_plplot1 ...) install(EXPORT export_plplot1 DESTINATION ${LIB_DIR}/cmake/plplot) [...] install(TARGETS plplotN EXPORT export_plplotN ...) install(EXPORT export_plplotN DESTINATION ${LIB_DIR}/cmake/plplot) (i.e., N

Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-28 Thread Nils Gladitz
On 04/28/2015 11:43 AM, Alan W. Irwin wrote: @Nils: the origin of the code right below If COMPONENTS... is not clear. Is that code that should be supplied by a package creator or code that should be implemented by every find_package user? And if it should be supplied by a package creator, does

Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-28 Thread Alan W. Irwin
On 2015-04-28 08:56+0200 Nils Gladitz wrote: On 04/28/2015 01:20 AM, Alan W. Irwin wrote: On 2015-04-24 12:33-0700 Alan W. Irwin wrote: This should be a pretty common issue on Linux since it is quite typical there that downstream packaging splits up binary results into different packages.

Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-27 Thread Alan W. Irwin
On 2015-04-24 12:33-0700 Alan W. Irwin wrote: This should be a pretty common issue on Linux since it is quite typical there that downstream packaging splits up binary results into different packages. Therefore, I assume there is a CMake solution to this issue, and I would appreciate those who

Re: [CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-25 Thread Alexander Neundorf
On Friday, April 24, 2015 12:33:50 Alan W. Irwin wrote: The Fedora packager of PLplot is having trouble splitting installed results into separate binary packages because of the way that PLplot currently exports its targets. What steps do we have to do to make life easier for him? Here is

[CMake] What is the proper way to export targets that will be split into separate binary packages?

2015-04-24 Thread Alan W. Irwin
The Fedora packager of PLplot is having trouble splitting installed results into separate binary packages because of the way that PLplot currently exports its targets. What steps do we have to do to make life easier for him? Here is the typical code we use now to export our targets. # Done