Re: [CMake] COMPONENTS for export files

2013-04-10 Thread Alexander Neundorf
On Wednesday 10 April 2013, Nico Schlömer wrote: > Sounds pretty good! > > One question remains: > Suppose I have components A, B, C, where both A and B depend on C. > The link line that I'd pull in with > > FIND_PACKAGE(Mypackage COMPONENTS A B) > > Would be > , , , > where all of those could

Re: [CMake] COMPONENTS for export files

2013-04-09 Thread Nico Schlömer
Sounds pretty good! One question remains: Suppose I have components A, B, C, where both A and B depend on C. The link line that I'd pull in with FIND_PACKAGE(Mypackage COMPONENTS A B) Would be , , , where all of those could be sets. Is there a way to avoid including C's libs twice? (Is that des

Re: [CMake] COMPONENTS for export files

2013-04-08 Thread Alexander Neundorf
On Monday 08 April 2013, Nico Schlömer wrote: > Hi all, > > I have a software project that I build and install with CMake. For > others to link against the software project, I have a > "MypackageConfig.cmake.in" from which I create "MypackageConfig.cmake" > using CONFIGURE_PACKAGE_CONFIG_FILE(). O

[CMake] COMPONENTS for export files

2013-04-07 Thread Nico Schlömer
Hi all, I have a software project that I build and install with CMake. For others to link against the software project, I have a "MypackageConfig.cmake.in" from which I create "MypackageConfig.cmake" using CONFIGURE_PACKAGE_CONFIG_FILE(). Others can then invoke FIND_PACKAGE(Mypackage) in their own